Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | include OrderedDict import in TimeBoundedLRU example (GH-96962) | Harry | 2022-09-22 | 1 | -0/+1 |
| | |||||
* | gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS ↵ | Serhiy Storchaka | 2022-08-04 | 1 | -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 Hettinger | 2022-02-25 | 1 | -6/+23 |
| | |||||
* | Counter doc mentions three methods, but lists four (GH-30706) | Charles Brunet | 2022-02-19 | 1 | -1/+1 |
| | | | Was probably caused by the addition of the `total()` method | ||||
* | Fix minor details in the Counter docs (GH-31029) | Raymond Hettinger | 2022-02-02 | 1 | -3/+10 |
| | |||||
* | Add doctest and improve readability for move_to_end() example. (#30370) | Raymond Hettinger | 2022-01-03 | 1 | -3/+5 |
| | |||||
* | Fix typo in Counter documentation (GH-29223) | Justinas Petuchovas | 2021-10-28 | 1 | -1/+1 |
| | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | ||||
* | More useful OrderedDict LRU recipes (GH-28164) | Raymond Hettinger | 2021-09-05 | 1 | -19/+76 |
| | |||||
* | bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536) | Raymond Hettinger | 2021-08-02 | 1 | -16/+32 |
| | |||||
* | Fix typo in collections.rst (#27270) | Elliot Waite | 2021-07-22 | 1 | -1/+1 |
| | |||||
* | bpo-41621: Document defaultdict's default_factory parameter (GH-21945) | Dennis Sweeney | 2021-06-22 | 1 | -2/+2 |
| | | | It defaults to None and is positional only. | ||||
* | bpo-25478: Add total() method to collections.Counter (GH-25829) | Raymond Hettinger | 2021-05-03 | 1 | -1/+11 |
| | |||||
* | bpo-43245: Add keyword argument support to ChainMap.new_child() (GH-24788) | Kamil Turek | 2021-03-14 | 1 | -4/+8 |
| | |||||
* | Update link to Django's Context class. (#24805) | Mariusz Felisiak | 2021-03-13 | 1 | -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 Kemenade | 2021-01-12 | 1 | -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 Hettinger | 2020-11-20 | 1 | -0/+3 |
| | |||||
* | Revert "Fix all Python Cookbook links (#22205)" (GH-22424) | Andre Delfino | 2020-09-27 | 1 | -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 Delfino | 2020-09-15 | 1 | -2/+2 |
| | |||||
* | bpo-40755: Add rich comparisons to Counter (GH-20548) | Raymond Hettinger | 2020-05-31 | 1 | -41/+13 |
| | |||||
* | bpo-40755: Add missing multiset operations to Counter() (GH-20339) | Raymond Hettinger | 2020-05-28 | 1 | -0/+41 |
| | |||||
* | bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139) | qudongfang | 2020-05-18 | 1 | -0/+2 |
| | |||||
* | bpo-36144: Add PEP 584 operators to collections.ChainMap (#18832) | Curtis Bucher | 2020-03-23 | 1 | -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 Bucher | 2020-03-13 | 1 | -0/+4 |
| | |||||
* | bpo-36144: Implement defaultdict union (GH-18729) | Brandt Bucher | 2020-03-06 | 1 | -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 Stinner | 2020-03-03 | 1 | -1/+1 |
| | |||||
* | bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in ↵ | Victor Stinner | 2020-02-18 | 1 | -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 Scholbach | 2019-11-12 | 1 | -1/+1 |
| | |||||
* | bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) | Serhiy Storchaka | 2019-06-01 | 1 | -1/+1 |
| | |||||
* | bpo-36953: Delay removal of ABCs from collections. (GH-13409) | Matthias Bussonnier | 2019-05-30 | 1 | -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 Delfino | 2019-05-21 | 1 | -9/+0 |
| | | | | | | parameter (GH-13263) | ||||
* | Simplify the ``LastUpdatedOrderedDict`` example recipe (GH-13296) | wim glenn | 2019-05-14 | 1 | -1/+1 |
| | |||||
* | Revert "Minor doc improvement (GH-10341)" (GH-12597) | Raymond Hettinger | 2019-03-28 | 1 | -1/+1 |
| | | | This reverts commit dfd775a0b1aee51d842b20cdebd97cc52c0b32e7. | ||||
* | Minor doc improvement (GH-10341) | Andre Delfino | 2019-03-27 | 1 | -1/+1 |
| | | | Change "star-operator" to "* operator". | ||||
* | bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) | Raymond Hettinger | 2019-03-18 | 1 | -2/+2 |
| | |||||
* | Update the seealso entries for namedtuple() (GH-12373) | Raymond Hettinger | 2019-03-16 | 1 | -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 Hettinger | 2019-03-16 | 1 | -1/+1 |
| | |||||
* | bpo-36057 Update docs and tests for ordering in collections.Counter [no ↵ | Raymond Hettinger | 2019-02-21 | 1 | -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 Hettinger | 2019-02-21 | 1 | -0/+15 |
| | | | | (GH-11969) | ||||
* | bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ↵ | Raymond Hettinger | 2019-02-21 | 1 | -43/+53 |
| | | | | ordered (GH-11966) | ||||
* | bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960) | Raymond Hettinger | 2019-02-20 | 1 | -1/+1 |
| | | | https://bugs.python.org/issue31982 | ||||
* | bpo-35864: Replace OrderedDict with regular dict in namedtuple() (#11708) | Raymond Hettinger | 2019-01-31 | 1 | -1/+8 |
| | | | | | | * Change from OrderedDict to a regular dict * Add blurb | ||||
* | dict insertion order is guaranteed since 3.7 (GH-10431) | Andrés Delfino | 2018-11-11 | 1 | -1/+1 |
| | |||||
* | bpo-35118: Improve docs regarding indexing (GH-10265) | Windson yang | 2018-11-04 | 1 | -3/+3 |
| | |||||
* | Fix missing line from example shell session (GH-9143) | Raymond Hettinger | 2018-09-11 | 1 | -0/+1 |
| | |||||
* | Corrected link targets in collections.rst (GH-1052) | Michael Seifert | 2018-03-26 | 1 | -24/+31 |
| | |||||
* | Fix typo -- missing "not" (GH-5528) | Raymond Hettinger | 2018-02-04 | 1 | -1/+1 |
| | |||||
* | bpo-32739: Show default value for rotate() (GH-5485) | Raymond Hettinger | 2018-02-03 | 1 | -4/+7 |
| | |||||
* | bpo-25988: Deprecate exposing collections.abc in collections GH-5414 | Raymond Hettinger | 2018-01-29 | 1 | -2/+2 |
| | |||||
* | bpo-32320: Add default value support to collections.namedtuple() (#4859) | Raymond Hettinger | 2018-01-11 | 1 | -1/+24 |
| | |||||
* | bpo-32099 Add deque variant of roundrobin() recipe (#4497) | Raymond Hettinger | 2017-11-23 | 1 | -0/+19 |
| | | | | * Minor wording tweaks |