summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
Commit message (Collapse)AuthorAgeFilesLines
* include OrderedDict import in TimeBoundedLRU example (GH-96962)Harry2022-09-221-0/+1
|
* gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS ↵Serhiy Storchaka2022-08-041-1/+1
| | | | | | | | | | (GH-95527) If an HTTP link is redirected to a same looking HTTPS link, the latter can be used directly without changes in readability and behavior. It protects from a men-in-the-middle attack. This change does not affect Python examples.
* Update dict/OrderedDict differences with code equivalents. (GH-31563)Raymond Hettinger2022-02-251-6/+23
|
* Counter doc mentions three methods, but lists four (GH-30706)Charles Brunet2022-02-191-1/+1
| | | Was probably caused by the addition of the `total()` method
* Fix minor details in the Counter docs (GH-31029)Raymond Hettinger2022-02-021-3/+10
|
* Add doctest and improve readability for move_to_end() example. (#30370)Raymond Hettinger2022-01-031-3/+5
|
* Fix typo in Counter documentation (GH-29223)Justinas Petuchovas2021-10-281-1/+1
| | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* More useful OrderedDict LRU recipes (GH-28164)Raymond Hettinger2021-09-051-19/+76
|
* bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)Raymond Hettinger2021-08-021-16/+32
|
* Fix typo in collections.rst (#27270)Elliot Waite2021-07-221-1/+1
|
* bpo-41621: Document defaultdict's default_factory parameter (GH-21945)Dennis Sweeney2021-06-221-2/+2
| | | It defaults to None and is positional only.
* bpo-25478: Add total() method to collections.Counter (GH-25829)Raymond Hettinger2021-05-031-1/+11
|
* bpo-43245: Add keyword argument support to ChainMap.new_child() (GH-24788)Kamil Turek2021-03-141-4/+8
|
* Update link to Django's Context class. (#24805)Mariusz Felisiak2021-03-131-1/+1
| | | | * Update link to Django's Context class. * Update link to get-pip.py.
* bpo-37324: Remove ABC aliases from collections (GH-23754)Hugo van Kemenade2021-01-121-5/+0
| | | | Remove deprecated aliases to Abstract Base Classes from the collections module.
* bpo-42360: Add advice to help avoid pickling issues. (GH-23305)Raymond Hettinger2020-11-201-0/+3
|
* Revert "Fix all Python Cookbook links (#22205)" (GH-22424)Andre Delfino2020-09-271-2/+2
| | | This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
* Fix all Python Cookbook links (#22205)Andre Delfino2020-09-151-2/+2
|
* bpo-40755: Add rich comparisons to Counter (GH-20548)Raymond Hettinger2020-05-311-41/+13
|
* bpo-40755: Add missing multiset operations to Counter() (GH-20339)Raymond Hettinger2020-05-281-0/+41
|
* bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139)qudongfang2020-05-181-0/+2
|
* bpo-36144: Add PEP 584 operators to collections.ChainMap (#18832)Curtis Bucher2020-03-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update ChainMap to include | and |= Created __ior__, __or__ and __ror__ methods in ChainMap class. * Update ACKS * Update docs * Update test_collections.py to include test_issue584(). Added testing for | and |= operators for ChainMap objects. * Update test_union_operators Renamed test_union operators, fixed errors and style problems raised by brandtbucher. * Update test_union_operators in TestChainMap Added testing for union operator between ChainMap and iterable of key-value pairs. * Update test_union operators in test_collections.py Gave more descriptive variable names and eliminated unnecessary tmp variable. * Update test_union_operators in test_collections.py Added cm3 * Check .maps rather than Chainmap equality. * Add news entry * Update Lib/test/test_collections.py Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> * Removed whitespace * Added Guido's changes * Fixed Docs * Removed whitespace Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
* bpo-36144: OrderedDict Union (PEP 584) (#18967)Brandt Bucher2020-03-131-0/+4
|
* bpo-36144: Implement defaultdict union (GH-18729)Brandt Bucher2020-03-061-0/+4
| | | For PEP 585 (this isn't in the PEP but is an obvious follow-up).
* bpo-39674: Update collections ABC deprecation doc (GH-18747)Victor Stinner2020-03-031-1/+1
|
* bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in ↵Victor Stinner2020-02-181-1/+1
| | | | | | | | the collections module. (GH-10596)" (GH-18545) This reverts commit ef092fe9905f61ca27889092ca1248a11aa74498. Update collections __getattr__() and documentation to defer aliases removal to Python 3.10.
* bpo-38771: Explict test for None in code example (GH-17108)Jonathan Scholbach2019-11-121-1/+1
|
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-1/+1
|
* bpo-36953: Delay removal of ABCs from collections. (GH-13409)Matthias Bussonnier2019-05-301-2/+2
| | | | | | | Bump the removal to 3.9, indicate collections.abc available since 3.3, replace version-changed directive to deprecated-removed. https://bugs.python.org/issue36953
* Remove workaround for defaults in namedtuple now that we have the defaults ↵Andre Delfino2019-05-211-9/+0
| | | | | | parameter (GH-13263)
* Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296)wim glenn2019-05-141-1/+1
|
* Revert "Minor doc improvement (GH-10341)" (GH-12597)Raymond Hettinger2019-03-281-1/+1
| | | This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7.
* Minor doc improvement (GH-10341)Andre Delfino2019-03-271-1/+1
| | | Change "star-operator" to "* operator".
* bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)Raymond Hettinger2019-03-181-2/+2
|
* Update the seealso entries for namedtuple() (GH-12373)Raymond Hettinger2019-03-161-7/+10
| | | | | | * Replace external recipe link with a link to the dataclasses module. * Highlight the class definition syntax for typing.NamedTuple and add an example for clarity.
* Minor grammar fix in docs (GH-12371)Raymond Hettinger2019-03-161-1/+1
|
* bpo-36057 Update docs and tests for ordering in collections.Counter [no ↵Raymond Hettinger2019-02-211-5/+10
| | | | | | | | | | behavior change] (#11962) * Add tests for Counter order. No behavior change. * Update docs and tests * Fix doctest output and capitalization
* bpo-36060: Document how collections.ChainMap() determines iteration order ↵Raymond Hettinger2019-02-211-0/+15
| | | | (GH-11969)
* bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ↵Raymond Hettinger2019-02-211-43/+53
| | | | ordered (GH-11966)
* bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)Raymond Hettinger2019-02-201-1/+1
| | | https://bugs.python.org/issue31982
* bpo-35864: Replace OrderedDict with regular dict in namedtuple() (#11708)Raymond Hettinger2019-01-311-1/+8
| | | | | | * Change from OrderedDict to a regular dict * Add blurb
* dict insertion order is guaranteed since 3.7 (GH-10431)Andrés Delfino2018-11-111-1/+1
|
* bpo-35118: Improve docs regarding indexing (GH-10265)Windson yang2018-11-041-3/+3
|
* Fix missing line from example shell session (GH-9143)Raymond Hettinger2018-09-111-0/+1
|
* Corrected link targets in collections.rst (GH-1052)Michael Seifert2018-03-261-24/+31
|
* Fix typo -- missing "not" (GH-5528)Raymond Hettinger2018-02-041-1/+1
|
* bpo-32739: Show default value for rotate() (GH-5485)Raymond Hettinger2018-02-031-4/+7
|
* bpo-25988: Deprecate exposing collections.abc in collections GH-5414Raymond Hettinger2018-01-291-2/+2
|
* bpo-32320: Add default value support to collections.namedtuple() (#4859)Raymond Hettinger2018-01-111-1/+24
|
* bpo-32099 Add deque variant of roundrobin() recipe (#4497)Raymond Hettinger2017-11-231-0/+19
| | | | * Minor wording tweaks