Miss Islington (bot)
179b134014
[3.12] gh-101100: Fix Sphinx warnings about list methods (GH-127054) ( #127512 )
...
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
2024-12-02 14:01:46 +00:00
Miss Islington (bot)
1d70dd257b
[3.12] gh-119004: fix a crash in equality testing between OrderedDict (GH-121329) ( #124508 )
...
gh-119004: fix a crash in equality testing between `OrderedDict` (GH-121329)
(cherry picked from commit 38a887dc3e )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-09-27 11:33:44 -07:00
Alex Waygood
d2068c65a6
[3.12] gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs ( #124480 ) ( #124558 )
2024-09-25 23:01:19 +00:00
Miss Islington (bot)
319233f137
[3.12] gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347) (GH-120412)
...
* Remove "()" when refer to a class as a type.
* Use :func: when refer to a callable.
* Fix reference to the datetime.astimezone() method.
(cherry picked from commit 92c9c6ae14 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-06-12 14:42:06 +00:00
Miss Islington (bot)
b83b3cb9da
[3.12] docs: module page titles should not start with a link to themselves (GH-117099) ( #118791 )
...
docs: module page titles should not start with a link to themselves (GH-117099)
(cherry picked from commit bcb435ee8f )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2024-05-08 19:42:01 +00:00
Miss Islington (bot)
656491783d
[3.12] gh-118671: Updated dead ActiveState links (GH-118730) ( #118754 )
...
Co-authored-by: trag1c <trag1cdev@yahoo.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2024-05-08 07:22:35 +00:00
Serhiy Storchaka
1e75fe1468
[3.12] gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298) (GH-116450)
...
(cherry picked from commit 808a77612f )
2024-03-07 08:21:25 +00:00
Miss Islington (bot)
082998c3af
[3.12] gh-113664: Improve style of Big O notation (GH-113695) (GH-113909)
...
Use cursive to make it looking like mathematic formulas.
(cherry picked from commit a8629816c6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-10 13:08:08 +00:00
Miss Islington (bot)
cdcab408a0
[3.12] GH-101100: Fix reference warnings for `__getitem__` (GH-110118) ( #111073 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-10-19 18:33:03 +03:00
Miss Islington (bot)
cae968ba17
[3.12] gh-110631: Fix reST indentation in Doc/library (GH-110685) ( #110736 )
...
gh-110631: Fix reST indentation in `Doc/library` (GH-110685)
Fix wrong indentation in the Doc/library dir.
(cherry picked from commit bb7923f556 )
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2023-10-11 23:11:28 +02:00
Furkan Onder
3690688149
GH-101898: Fix missing term references for hashable definition ( #101899 )
...
Fix missing term references for hashable definition
2023-02-14 14:20:11 +04:00
Stanley
286e3c76a9
gh-99087: Add missing newline for prompts in docs (GH-98993)
...
Add newline for prompts so copying to REPL does not cause errors.
2022-12-08 19:31:19 -08:00
Harry
ec403536f1
include OrderedDict import in TimeBoundedLRU example (GH-96962)
2022-09-22 10:58:19 -05:00
Serhiy Storchaka
f79547a429
gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (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.
2022-08-04 10:13:49 +03:00
Raymond Hettinger
26aba295a9
Update dict/OrderedDict differences with code equivalents. (GH-31563)
2022-02-25 08:49:53 -06:00
Charles Brunet
99331fcf17
Counter doc mentions three methods, but lists four (GH-30706)
...
Was probably caused by the addition of the `total()` method
2022-02-18 18:23:53 -08:00
Raymond Hettinger
f77beacf01
Fix minor details in the Counter docs (GH-31029)
2022-02-01 22:18:11 -06:00
Raymond Hettinger
770f43d47e
Add doctest and improve readability for move_to_end() example. ( #30370 )
2022-01-03 14:26:08 -08:00
Justinas Petuchovas
0a68b3603f
Fix typo in Counter documentation (GH-29223)
...
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
2021-10-28 18:43:09 +08:00
Raymond Hettinger
c860d30fa0
More useful OrderedDict LRU recipes (GH-28164)
2021-09-05 12:37:02 -05:00
Raymond Hettinger
54f185b6d3
bpo-44782: Improve OrderedDict recipe for LRU cache variants (GH-27536)
2021-08-02 13:15:45 -05:00
Elliot Waite
92a5c0871b
Fix typo in collections.rst ( #27270 )
2021-07-22 09:31:22 +02:00
Dennis Sweeney
d1ae57027f
bpo-41621: Document defaultdict's default_factory parameter (GH-21945)
...
It defaults to None and is positional only.
2021-06-22 10:19:24 -04:00
Raymond Hettinger
8c598dbb94
bpo-25478: Add total() method to collections.Counter (GH-25829)
2021-05-02 20:19:51 -07:00
Kamil Turek
9923df9641
bpo-43245: Add keyword argument support to ChainMap.new_child() (GH-24788)
2021-03-13 19:15:44 -08:00
Mariusz Felisiak
d0a445490e
Update link to Django's Context class. ( #24805 )
...
* Update link to Django's Context class.
* Update link to get-pip.py.
2021-03-13 04:26:11 -08:00
Hugo van Kemenade
c47c78b878
bpo-37324: Remove ABC aliases from collections (GH-23754)
...
Remove deprecated aliases to Abstract Base Classes from the
collections module.
2021-01-13 00:16:37 +01:00
Raymond Hettinger
9fc319dc03
bpo-42360: Add advice to help avoid pickling issues. (GH-23305)
2020-11-20 12:49:32 -08:00
Andre Delfino
e8a2076e14
Revert "Fix all Python Cookbook links ( #22205 )" (GH-22424)
...
This commit reverts commit ac0333e1e1 as the original links are working again and they provide extended features such as comments and alternative versions.
2020-09-27 01:47:25 +01:00
Andre Delfino
ac0333e1e1
Fix all Python Cookbook links ( #22205 )
2020-09-15 21:13:26 +01:00
Raymond Hettinger
b7d79b4f36
bpo-40755: Add rich comparisons to Counter (GH-20548)
2020-05-31 14:57:42 -07:00
Raymond Hettinger
60398512c8
bpo-40755: Add missing multiset operations to Counter() (GH-20339)
2020-05-28 08:35:46 -07:00
qudongfang
bb8635cc3b
bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139)
2020-05-17 20:50:51 -07:00
Curtis Bucher
f393b2c588
bpo-36144: Add PEP 584 operators to collections.ChainMap ( #18832 )
...
* 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>
2020-03-23 12:02:05 -07:00
Brandt Bucher
6d674a1bf4
bpo-36144: OrderedDict Union (PEP 584) ( #18967 )
2020-03-13 09:06:04 -07:00
Brandt Bucher
57c9d17256
bpo-36144: Implement defaultdict union (GH-18729)
...
For PEP 585 (this isn't in the PEP but is an obvious follow-up).
2020-03-06 09:24:08 -08:00
Victor Stinner
91fe414264
bpo-39674: Update collections ABC deprecation doc (GH-18747)
2020-03-03 17:31:11 +01:00
Victor Stinner
af5ee3ff61
bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in the collections module. (GH-10596)" (GH-18545)
...
This reverts commit ef092fe990 .
Update collections __getattr__() and documentation to defer aliases
removal to Python 3.10.
2020-02-18 16:28:53 +01:00
Jonathan Scholbach
98480cef9d
bpo-38771: Explict test for None in code example (GH-17108)
2019-11-11 16:49:41 -08:00
Serhiy Storchaka
2085bd0877
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
2019-06-01 11:00:15 +03:00
Matthias Bussonnier
eea47e0939
bpo-36953: Delay removal of ABCs from collections. (GH-13409)
...
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
2019-05-30 14:45:48 -07:00
Andre Delfino
3099ae4075
Remove workaround for defaults in namedtuple now that we have the defaults parameter (GH-13263)
2019-05-20 20:52:17 -04:00
wim glenn
1a10a6b980
Simplify the `LastUpdatedOrderedDict` example recipe (GH-13296)
2019-05-13 18:10:13 -07:00
Raymond Hettinger
fb28fcc925
Revert "Minor doc improvement (GH-10341)" (GH-12597)
...
This reverts commit dfd775a0b1 .
2019-03-27 21:03:02 -07:00
Andre Delfino
dfd775a0b1
Minor doc improvement (GH-10341)
...
Change "star-operator" to "* operator".
2019-03-26 21:17:50 -04:00
Raymond Hettinger
23581c018f
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)
2019-03-18 00:27:39 -07:00
Raymond Hettinger
9c68543f02
Update the seealso entries for namedtuple() (GH-12373)
...
* 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.
2019-03-16 12:53:23 -07:00
Raymond Hettinger
5927cfdf3a
Minor grammar fix in docs (GH-12371)
2019-03-16 11:16:29 -07:00
Raymond Hettinger
407c734326
bpo-36057 Update docs and tests for ordering in collections.Counter [no behavior change] ( #11962 )
...
* Add tests for Counter order. No behavior change.
* Update docs and tests
* Fix doctest output and capitalization
2019-02-21 09:19:00 -08:00
Raymond Hettinger
86f093f71a
bpo-36060: Document how collections.ChainMap() determines iteration order (GH-11969)
2019-02-21 09:12:15 -08:00