This page documents the time-complexity (aka "Big O" or "Big Oh") of various operations in current CPython. Other Python implementations (or older or still-under development versions of CPython) may have slightly different performance characteristics. However, it is generally safe to assume that they are not slower by more than a factor of O(log n). | wiki.python.org
An iterable object is an object that implements __iter__, which is expected to return an iterator object. | wiki.python.org
About this page| wiki.python.org
Generator functions allow you to declare a function that behaves like an iterator, i.e. it can be used in a for loop. | wiki.python.org
Beginner's Guide to Python| wiki.python.org
Contents| wiki.python.org
Please Note| wiki.python.org
In CPython, the global interpreter lock, or GIL, is a mutex that protects access to Python objects, preventing multiple threads from executing Python bytecodes at once. The GIL prevents race conditions and ensures thread safety. A nice explanation of how the Python GIL helps in these areas can be found here. In short, this mutex is necessary mainly because CPython's memory management is not thread-safe. | wiki.python.org