backport_collections is a backport of Python 2.7’s collections module for Python 2.6.
What is backported?
Counter, deque, OrderedDict and namedtuple are backported. The rest of the members of the collections module are still exposed. Note though that some ABC classes are slighlty different (see known issues below).
Usage
To use it just import the desired classes from the module backport_collections. Example:
from backport_collections import Counter from backport_collections import deque from backport_collections import OrderedDict from backport_collections import namedtuple
Known Issues
In Python 2.6 Issue 9137 is not fixed as it complains if it gets a keyword argument named self. The error is TypeError: update() got multiple values for keyword argument 'self'. Additionally the keyword argument cannot be called other either as it will think it is the full dict. No error is raised in this case.
In Python 2.6 Issue 8743 is not fully fixed: Set interoperability with real sets
License
The Python Software Foundation License.
Changes
v0.1 (15/08/2014): Synced to revision http://hg.python.org/cpython/rev/6d41f139709b
Metadata
Release files for backport_collections 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| backport_collections-0.1.tar.gz | 37.7 kB | Without provenance | Details |
Release files / backport_collections-0.1.tar.gz
| Download URL | backport_collections-0.1.tar.gz |
|---|---|
| Size | 37.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
939ac17313c6cda524b15fea9706af6ececd07b763a48b371b5b6d345b05eab7
|
|
BLAKE2b-256 checksum How to use checksums |
d0ddd833f666d54a3ec27a8ffd85e2c05838585550de3b38addd8a11d8528734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for backport_collections 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.