Python¶
Documentation¶
Reference¶
Guides¶
HOWTOs - Deep dives into specific topics
Installing Python Modules and Building C and C++ Extensions with setuptools
Distributing Python Modules and python:distutils-index
Python Enhancement Proposals¶
PEP |
Title |
See Also |
---|---|---|
Python Database API Specification v1.0 |
||
Python Database API Specification v2.0 |
||
New Import Hooks |
||
Python Web Server Gateway Interface v1.0 |
||
The pathlib module – object-oriented filesystem paths |
||
Version Identification and Dependency Specification |
||
Improving Python ZIP Application Support |
||
Single-dispatch generic functions |
||
A dedicated infix operator for matrix multiplication |
||
Coroutines with async and await syntax |
||
Specifying Minimum Build System Requirements for Python Projects |
||
Context Variables |
||
Python 3000 |
Runtime¶
Environment Variable |
Option |
Notes |
---|---|---|
Bugtracker: -W option cannot use non-standard categories |
||
StackOverflow: UnicodeDecodeError when redirecting to file When you redirect the output of your program, it is generally not possible to know what the input encoding of the receiving program is. The interpreter falls back to some default encoding for stdin, stdout, and stderr (None for Python 2, UTF-8 for Python 3). $ python -c "import sys; print sys.stdout.encoding"
UTF-8
$ python -c "import sys; print sys.stdout.encoding" | cat
None
Set $ PYTHONIOENCODING=UTF-8 python -c "import sys; print sys.stdout.encoding" | cat
UTF-8
|
Community¶
General¶
Pyformat.info - String formatting cheat sheet
Python bootcamp lecture notes - Course offered by Code Fellows
Internet Programming with Python - Certificate course offered by University of Washington
Language¶
Green Tree Snakes - The missing Python AST docs
Metaclasses
Trends¶
Python Developers Survey: 2017, 2018, 2019 - Collaboration between JetBrains & the Python Software Foundation
StackOverflow: The Incredible Growth of Python and Why is Python Growing So Quickly?
Packaging¶
Official
Python Package Index (PyPI) - Community package repository
Python Packaging Authority (PyPA) - Working group for packaging-related projects
Python Packaging User Guide - Guide to best practices
Donald Stufft: setup.py vs requirements.txt - Explains the roles of each component
Kenneth Reitz: A Better Pip Workflow - Multiple requirements files
The Many Layers of Packaging - Broad overview of packaging, “pip is for libraries”
Python 3¶
Python 3 Readiness - Shows Python 3 support for the most popular packages on PyPI
Python 3 Statement - Pledge by scientific projects to drop Python 2 support by 2020
Python 3 Q&A - Compehensive FAQ by Nick Coghlan (Python core developer)
Brett Cannon: Why Python 3 Exists
Eevee: Why should I use Python 3? and How do I port to Python 3?
Asynchronous I/O¶
Unyielding - There are no shortcuts to making single-tasking code concurrent
Sans I/O - Network protocol implementations that operate directly on text
Scientific Computing¶
Scipy Lecture Notes - Tutorials on the scientific Python ecosystem