summaryrefslogtreecommitdiffstats
path: root/Lib/collections
Commit message (Collapse)AuthorAgeFilesLines
* Clarify that example in comment is about fromkeys() (GH-8141)Raymond Hettinger2018-07-061-1/+1
|
* Add more detail to the Counter.fromkeys() comment block (GH-8124)Raymond Hettinger2018-07-051-2/+7
|
* Code beautification using f-strings (#5618)Raymond Hettinger2018-02-111-2/+1
|
* bpo-32792: Preserve mapping order in ChainMap() (GH-5586)Raymond Hettinger2018-02-111-1/+4
|
* bpo-25988: Emit a warning when use or import ABCs from 'collections'. (#5460)Serhiy Storchaka2018-01-311-21/+27
|
* bpo-25988: Deprecate exposing collections.abc in collections GH-5414Raymond Hettinger2018-01-291-3/+7
|
* bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)INADA Naoki2018-01-271-0/+1
|
* bpo-32320: Add default value support to collections.namedtuple() (#4859)Raymond Hettinger2018-01-111-3/+17
|
* bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() ↵Raymond Hettinger2017-09-101-77/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#3454) * Working draft without _source * Re-use itemgetter() instances * Speed-up calls to __new__() with a pre-bound tuple.__new__() * Add note regarding string interning * Remove unnecessary create function wrappers * Minor sync-ups with PR-2736. Mostly formatting and f-strings * Bring-in qualname/__module fix-ups from PR-2736 * Formally remove the verbose flag and _source attribute * Restore a test of potentially problematic field names * Restore kwonly_args test but without the verbose option * Adopt Inada's idea to reuse the docstrings for the itemgetters * Neaten-up a bit * Add news blurb * Serhiy pointed-out the need for interning * Jelle noticed as missing f on an f-string * Add whatsnew entry for feature removal * Accede to request for dict literals instead keyword arguments * Leave the method.__module__ attribute pointing the actual location of the code * Improve variable names and add a micro-optimization for an non-public helper function * Simplify by in-lining reuse_itemgetter() * Arrange steps in more logical order * Save docstring in local cache instead of interning
* bpo-30662: fixed OrderedDict.__init__ docstring re PEP 468 (#2179)Jonathan Eunice2017-09-051-3/+1
| | | | | | | | | | | | * fixed OrderedDict.__init__ docstring re PEP 468 * tightened comment and mirrored to C impl * added space after period per marco-buttu * preserved substituted for stable * drop references to Python 3.6 and PEP 468
* Issues #29311, #29289: Fixed and improved docstrings for dict and OrderedDictSerhiy Storchaka2017-01-241-10/+9
| | | | methods.
* mergeRaymond Hettinger2016-12-311-2/+5
|\
| * Issue #29119: Fix weakref in OrderedDict.move_to_end(). Work by Andra Bogildea.Raymond Hettinger2016-12-311-2/+5
| |
* | Issue #17941: Add a *module* parameter to collections.namedtuple()Raymond Hettinger2016-09-121-6/+10
| |
* | Remove main section that was only used during testing and developmentRaymond Hettinger2016-08-221-38/+0
| |
* | Minor readability tweakRaymond Hettinger2016-08-171-1/+1
| |
* | Issue #25628: Make namedtuple "rename" and "verbose" parameters keyword-only.Raymond Hettinger2016-08-161-1/+1
| |
* | Issue #27125: Merge typo fixes from 3.5Martin Panter2016-05-291-1/+2
|\ \ | |/ | | | | Also merge changes from Issue #27117; no actual code changes to 3.6.
| * Issue #27125: Fix various errors like “will [be] inherited”Martin Panter2016-05-291-1/+2
| |
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-1/+1
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Fix out-of-date commentRaymond Hettinger2016-02-251-1/+1
| |
* | mergeRaymond Hettinger2015-11-241-1/+1
|\ \ | |/
| * Fix non-ascii characterRaymond Hettinger2015-11-241-1/+1
| |
* | mergeRaymond Hettinger2015-11-241-0/+16
|\ \ | |/
| * Add a missing docstringRaymond Hettinger2015-11-241-0/+16
| |
* | Issue #22609: Constructor of collections.UserDict now accepts the self keywordSerhiy Storchaka2015-09-291-1/+16
|\ \ | |/ | | | | argument.
| * Issue #22609: Constructor of collections.UserDict now accepts the self keywordSerhiy Storchaka2015-09-291-1/+16
| |\ |/ / | | | | argument.
| * Issue #22609: Constructor of collections.UserDict now accepts the self keywordSerhiy Storchaka2015-09-291-1/+16
| | | | | | | | argument.
* | mergeRaymond Hettinger2015-09-081-3/+2
|\ \ | |/
| * Fix whitespace in comment.Raymond Hettinger2015-09-081-3/+2
| |
* | mergeRaymond Hettinger2015-08-301-10/+1
|\ \ | |/
| * Issue #24931: Resolve __dict__ conflict in namedtuple subclasses.Raymond Hettinger2015-08-301-10/+1
| |
* | Issue #23509: Speed up Counter operatorsRaymond Hettinger2015-05-301-2/+10
| | | | | | | | (Based on patch by Serhiy Storchaka.)
* | Issue #16991: Add a C implementation of collections.OrderedDict.Eric Snow2015-05-301-2/+19
| |
* | Issue 22189: Add missing methods to UserStringRaymond Hettinger2015-05-221-0/+10
| |
* | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵Raymond Hettinger2015-03-211-0/+2
| | | | | | | | as a MutableSequence.
* | Issue #23326: Removed __ne__ implementations. Since fixing default __ne__Serhiy Storchaka2015-01-311-5/+0
| | | | | | | | implementation in issue #21408 they are redundant.
* | Issue #22609: Revert changes in UserDict. They conflicted with existing tests.Serhiy Storchaka2014-11-271-8/+1
|\ \ | |/
| * Issue #22609: Revert changes in UserDict. They conflicted with existing tests.Serhiy Storchaka2014-11-271-8/+1
| |
* | Issue #22609: Constructors and update methods of mapping classes in theSerhiy Storchaka2014-11-271-8/+39
|\ \ | |/ | | | | collections module now accept the self keyword argument.
| * Issue #22609: Constructors and update methods of mapping classes in theSerhiy Storchaka2014-11-271-8/+39
| | | | | | | | collections module now accept the self keyword argument.
* | mergeRaymond Hettinger2014-06-241-0/+3
|\ \ | |/
| * Issue 21832: Require named tuple inputs to be exact stringsRaymond Hettinger2014-06-241-0/+3
| |
* | Issue #19414: Have the OrderedDict mark deleted links as unusable.Raymond Hettinger2014-05-041-0/+2
| | | | | | | | | | This gives an earlier and more visible failure if a link is deleted during iteration.
* | Issue #19505: The items, keys, and values views of OrderedDict now supportSerhiy Storchaka2014-04-041-3/+30
|/ | | | reverse iteration using reversed().
* Clean-up docstringRaymond Hettinger2014-03-201-3/+1
|
* whitespace cleanupChristian Heimes2013-10-131-1/+0
|
* Issue #19218: Add facade collections.abcChristian Heimes2013-10-131-0/+3
|
* Issue #19218: Rename collections.abc to _collections_abc in order to speed ↵Christian Heimes2013-10-132-731/+3
| | | | up interpreter start