About Python Module of the Week

PyMOTW-3 is a series of articles written by Doug Hellmann. to demonstrate how to use the modules of the Python 3 standard library. It is based on the original PyMOTW series, which covered Python 2.7.

See the project home page at https://pymotw.com/3/ for updates.

Source code is available via git from https://github.com/dhellmann/pymotw-3/.

Complete documentation for the standard library can be found on the Python web site at https://docs.python.org/3/library/.


As new articles are written, they are posted to my blog as well as https://pymotw.com. Updates are available by RSS from https://feeds.feedburner.com/PyMOTW. Follow @pymotw or @doughellmann for updates as well.


The source text for PyMOTW-3 is reStructuredText and the HTML output is created using Sphinx.

The output from all the example programs has been generated with CPython (see below for version) and inserted into the text using cog.

$ python3 -V

Python 3.7.1


Some of the features described here may not be available in earlier versions of the standard library. When in doubt, refer to the documentation for the version of Python you are using.

Translations and Other Versions


Roberto Pauletto has started translating the Python 3 articles into Italian.


Jaron has translated most of the articles into Chinese for pandacademy.com.


Ernesto Rico Schmidt has translated all of the articles into Spanish.