string — Text Constants and Templates — PyMOTW 3

The string module dates from the earliest versions of Python. Many of the functions previously implemented in the module have been moved to methods of str objects. The string module retains several useful constants and classes for working with str objects, and this discussion will concentrate on them.

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.

ensurepip — Install the Python Package Installer — PyMOTW 3

While Python is the “Batteries Included” programming language and comes with a wide variety of modules in the standard library, there are even more libraries, frameworks, and tools available to be installed from the Python Package Index . To install those packages, a developer needs the installer tool pip . Installing a tool meant to install tools presents an interesting bootstrapping issue, which ensurepip solves.

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.

venv — Create Virtual Environments — PyMOTW 3

Python virtual environments are set up for installing packages and running programs in a way that isolates them from other packages installed on the rest of the system. Because each environment has its own interpreter executable and directory for installing packages, it is easy to create environments configured with various combinations of Python and package versions all on the same computer.

Read more…

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.

Discount on Python 3 Standard Library By Example

The new edition of my book, titled The Python 3 Standard Library By Example, will be available soon. Owners of the previous edition, based on Python 2, can receive a discount on the new edition by registering their copies with the publisher.

Visit informit.com/register before 2 May to create an account and register your old edition, regardless of where you purchased it. Note that you’ll need to agree to receive promotional email from them, since that’s how the discount information will be delivered.

After you’ve registered, look for information about the discount to be delivered on 5 May.

Lessons learned from working on large scale, cross-project initiatives in OpenStack

I have been involved with OpenStack development since just before the Folsom summit in 2012. Over the course of that time, I have participated in innumerable discussions about 3 big features tied to OpenStack logging: translating log messages, adding request IDs to log messages, and adding unique message IDs to log messages. We have had various degrees of success with the design, implementation, and ongoing maintenance of all three features, and the reasons for success or failure in each case provide helpful insight into how to approach changes with large community and product scope that should be considered before our next discussion at the summit/forum in Boston in 2017.
Continue reading Lessons learned from working on large scale, cross-project initiatives in OpenStack

yasfb 0.6.1

yasfb is Yet Another Sphinx Feed Builder, and creates an RSS feed for changes in Sphinx documentation.

What’s new in 0.6.1?

  • write feed using utf-8 encoding

yasfb 0.6.0

yasfb is Yet Another Sphinx Feed Builder, and creates an RSS feed for changes in Sphinx documentation.

What’s new in 0.6.0?

  • Enable Python 3 compatibility (contributed by Stephen Finucane)