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
Raymond Hettinger
49fd6dd887
bpo-36059: Update OrderedDict() docs to reflect that regular dicts are now ordered (GH-11966)
2019-02-21 00:05:30 -08:00
Raymond Hettinger
9b0c681e2d
bpo-31982: Improve sequence of presentation in ChainMap docs (GH-11960)
...
https://bugs.python.org/issue31982
2019-02-20 13:49:23 -08:00
Raymond Hettinger
0bb4bdf0d9
bpo-35864: Replace OrderedDict with regular dict in namedtuple() ( #11708 )
...
* Change from OrderedDict to a regular dict
* Add blurb
2019-01-31 00:59:50 -08:00
Andrés Delfino
76e8fd7b7e
dict insertion order is guaranteed since 3.7 (GH-10431)
2018-11-11 08:56:47 -08:00
Windson yang
98b8535415
bpo-35118: Improve docs regarding indexing (GH-10265)
2018-11-04 14:34:22 -08:00
Raymond Hettinger
2064bb6d57
Fix missing line from example shell session (GH-9143)
2018-09-10 18:43:08 -07:00
Michael Seifert
e105294708
Corrected link targets in collections.rst (GH-1052)
2018-03-26 14:40:35 +03:00
Raymond Hettinger
ca6c125f10
Fix typo -- missing "not" (GH-5528)
2018-02-04 09:15:01 -08:00
Raymond Hettinger
589c718a8e
bpo-32739: Show default value for rotate() (GH-5485)
2018-02-03 08:46:28 -08:00
Raymond Hettinger
e6d342156d
bpo-25988: Deprecate exposing collections.abc in collections GH-5414
2018-01-29 08:27:49 -08:00
Raymond Hettinger
3948207c61
bpo-32320: Add default value support to collections.namedtuple() ( #4859 )
2018-01-10 21:45:19 -08:00
Raymond Hettinger
0858495a50
bpo-32099 Add deque variant of roundrobin() recipe ( #4497 )
...
* Minor wording tweaks
2017-11-23 13:32:23 -08:00
Raymond Hettinger
8b57d73639
bpo-28638: Optimize namedtuple() creation time by minimizing use of exec() ( #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
2017-09-10 10:23:36 -07:00
Ben Hoyt
184bd82ba8
bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173)
2017-06-13 12:20:51 -07:00
csabella
97bf722fcd
bpo-28851: Improve namedtuple documentation (GH-1274)
...
Clarify that a sequence of strings is the preferred value for 'field_names'.
2017-04-25 09:14:45 -07:00
Raymond Hettinger
d15bb26248
Update OrderedDict docs to reflect acceptance of PEP 468
2017-01-07 22:05:12 -08:00
Serhiy Storchaka
989db5c880
Issue #19795 : Mark up None as literal text.
2016-10-19 16:37:13 +03:00
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
2016-10-19 16:29:26 +03:00
Raymond Hettinger
0d5048cb21
Issue #17941 : Add a *module* parameter to collections.namedtuple()
2016-09-12 00:18:31 -07:00
Raymond Hettinger
fd27f62a74
Add cross-reference to typing.NamedTuple. Doctest two more examples.
2016-08-16 13:13:17 -07:00
Raymond Hettinger
a5f1fbd493
merge
2016-08-16 10:59:21 -07:00
Raymond Hettinger
379a3ffaf2
Remove duplicate of the entry in the seealso section
2016-08-16 10:59:04 -07:00
Raymond Hettinger
6538b430cf
Issue #25628 : Make namedtuple "rename" and "verbose" parameters keyword-only.
2016-08-16 10:55:43 -07:00
Zachary Ware
0e0fe4f9ea
Closes #27205 : Merge with 3.5
2016-08-09 17:38:44 -05:00
Zachary Ware
2b52c0a25f
Issue #27205 : Fix doctests in Doc/library/collections.rst.
...
Initial patch by Jelle Zijlstra.
2016-08-09 17:38:22 -05:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Martin Panter
e501a93c18
Issue #27125 : Merge typo fixes from 3.5
...
Also merge changes from Issue #27117 ; no actual code changes to 3.6.
2016-05-29 09:05:06 +00:00
Martin Panter
8d56c026a5
Issue #27125 : Fix various errors like “will [be] inherited”
2016-05-29 04:13:35 +00:00
Serhiy Storchaka
4ecfa455ae
Expand abbreviations FIFO and LIFO.
2016-05-16 09:31:54 +03:00
Serhiy Storchaka
c499f30286
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:56 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Serhiy Storchaka
1acbf853c8
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:58 +03:00
Serhiy Storchaka
6dff0205b7
Issue #26736 : Used HTTPS for external links in the documentation if possible.
2016-05-07 10:49:07 +03:00
Paul Moore
9a8d0d5c7d
Mention types.SimpleNamespace in collections.namedtuple doc
...
Issue #26805 .
2016-04-19 19:17:16 +01:00
Paul Moore
b5d164cc3f
Mention types.SimpleNamespace in collections.namedtuple doc
...
Issue #26805 .
2016-04-19 19:17:16 +01:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00