Language ReferenceΒΆ

This section covers Python language features, design patterns, standard library modules, and internal details like the AST and time complexity of built-in operations. It is a mix of explanations, proposals, and discussions – some of it historical, some still useful as reference. If you want to understand how a particular feature works under the hood, or why Python made the design choices it did, look here.

Core Language FeaturesΒΆ

  • Decorators – syntax, use cases, and links to the decorator library on PyPI

  • Generators – how generator functions work and how to use them as iterators

  • Iterator – the iterator protocol, __iter__ and __next__ explained

  • With Statement – discussion of PEP 343 and context managers

  • Abstract Base Classes – the proposed Python 3K class tree

  • Switch Statement – historical proposals for adding switch/case to Python

  • Alternate Lambda Syntax – community proposals for lambda alternatives before Python 3

AST and InternalsΒΆ

  • AST – overview of Python’s Abstract Syntax Tree for source analysis

  • AST-Based Optimization – performing peephole optimizations at the AST level instead of bytecode

  • Byteplay Documentation – docs for the byteplay bytecode manipulation library

Patterns and DesignΒΆ

Configuration ParsingΒΆ

Path HandlingΒΆ

Data and TextΒΆ

ConcurrencyΒΆ

  • Concurrency – collected resources on concurrent programming in Python

  • Concurrency – overview of concurrency approaches and threading

Performance ReferenceΒΆ