summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-44765: [doc] fix typo (GH-27430) (GH-27450)Miss Islington (bot)2021-07-291-1/+1
| | | | | (cherry picked from commit ccefa8a905c797e4a60078d5e1de846f929c6928) Co-authored-by: Pavel <69010336+pavel-lexyr@users.noreply.github.com>
* bpo-44763: [doc] remove repetitive sentence from textwrap.wrap (GH-27423) ↵Miss Islington (bot)2021-07-281-1/+1
| | | | | | | (GH-27426) (cherry picked from commit cb1d76f10ab33dddd0dbd64e6506bf7c065d499b) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44544: [doc] list all textwrap func kwargs (GH-26999) (GH-27424)Miss Islington (bot)2021-07-281-4/+14
| | | | | (cherry picked from commit c1e39d6b1167376fdaf3f288ba9a689e61c7fdd1) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* Fix typo in sqlite3.rst (GH-27415) (GH-27417)Miss Islington (bot)2021-07-281-1/+1
| | | | | | preceeding -> preceding (cherry picked from commit fbe87023bf33e941373a5fca023652a825db7baf) Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
* Add missing end of sentence in docs (GH-27280) (GH-27419)Miss Islington (bot)2021-07-281-1/+1
| | | | | (cherry picked from commit 531e2fbc52ce07a9cf37e0db05a5337e404dfccd) Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
* Spell out 's.pop() or s.pop(i)' (GH-27398) (GH-27412)Miss Islington (bot)2021-07-281-1/+1
| | | | | (cherry picked from commit 2ff5bb4908975976031ba738866de619cafadc4d) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) ↵Miss Islington (bot)2021-07-271-1/+1
| | | | | | | | (#27386) Follow up to 11749e2dc20ad6a76e9a39e948853e89b2b4bbed (cherry picked from commit 2e41df4d60d71a2551b9605d07321f75cfb52adf) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [doc] Fix typo in asyncio Event Loop (GH-27377)Miss Islington (bot)2021-07-271-1/+1
| | | | | | | | First Pull Request to cpython, so forgive me for any mistakes Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 6fa4060b86a116dc4fb69356795faf6ff1cdde58) Co-authored-by: Vinicius Gubiani Ferreira <vini.g.fer@gmail.com>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-2620-40/+40
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* docs: replace "Mac OS X" -> "macOS" (GH-27364) (GH-27374)Miss Islington (bot)2021-07-261-6/+6
| | | | | | | | "Mac OS X" has been rebranded as macOS https://www.apple.com/macos (cherry picked from commit 5fdd2a14ce3f81a7db47bb79421c426dec4b25bd) Co-authored-by: partev <petrosyan@gmail.com>
* The current documentation says it returns None if the name is not found, but ↵Miss Islington (bot)2021-07-261-1/+1
| | | | | | | | | | (GH-26785) (GH-27371) the implementation uses [] and will raise KeyError instead. Noticed by @srittau in python/typeshed@5659. (cherry picked from commit f22737abfa07605f4ed1a99cfa97a26520b6c5c2) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-43443: Clarify difference between shelve objects and dicts (GH-27004) ↵Miss Islington (bot)2021-07-261-1/+2
| | | | | | | (GH-27369) (cherry picked from commit c97c2a050cf753003012ae3f08e035326b8f6167) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44732: Rename types.Union to types.UnionType (GH-27342)Miss Islington (bot)2021-07-262-5/+5
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2b8ad9e6c5f0a66e9ca2d15f85336d8a3eefefb0) Co-authored-by: Hasan <hasan.aleeyev@gmail.com>
* [3.10] bpo-43184: Add information about added attribute and method. ↵Miss Islington (bot)2021-07-251-0/+4
| | | | | (GH-27347) (GH-27355) (cherry picked from commit 50b72768ffe6413424dc4eba916dd1ff89a2fe7b)
* bpo-44713: [doc fix]: typo in subprocess.rst (GH-27297) (GH-27298)Miss Islington (bot)2021-07-241-1/+1
| | | | | | | This fixes a small typo. The code fragment should not be quoted. Thank you @merwok for the feedback. (cherry picked from commit 7d25254cf0763b62f4c4a3019e56385cab597b9f) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-44353: Document that typing.NewType is now a class (GH-27319) (GH-27321)Miss Islington (bot)2021-07-241-10/+19
| | | | | (cherry picked from commit 7aac3f623610cf3dffbf548a5be5bfd4fa6790a0) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-14879: [doc] clarify how to check for errors from subprocess.Popen(..., ↵Miss Islington (bot)2021-07-221-1/+4
| | | | | | | | | shell=True) (GH-26755) (GH-27288) (cherry picked from commit 50ffbe3dafcae7826d114df61d56c7ac45a6358c) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* Fix typo in collections.rst (GH-27270) (#27285)Miss Islington (bot)2021-07-221-1/+1
|
* bpo-30511: Add note on thread safety to shutil.make_archive() (GH-26933) ↵Miss Islington (bot)2021-07-211-0/+4
| | | | | | | | (GH-27274) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 64f54b7ccd49764b0304e076bfd79b5482988f53) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* Clean up comma usage in Doc/library/functions.rst (GH-27083) (#27243)Miss Islington (bot)2021-07-191-38/+38
| | | | | (cherry picked from commit 1e651c6adad8e4e772a15eaa9ee659b1283a96d9) Co-authored-by: α∂мιηιχтяαтσя <sadiqherritage@gmail.com>
* bpo-34932: Add socket.TCP_KEEPALIVE for macOS (GH-25079)Miss Islington (bot)2021-07-141-0/+2
| | | | | (cherry picked from commit d59d7374a364c4e5c2b9a83d8e4543ee494285b8) Co-authored-by: Shane Harvey <shnhrv@gmail.com>
* bpo-44639: fix typo in sqlite.rst (transation => transaction) (GH-27145) ↵Miss Islington (bot)2021-07-141-1/+1
| | | | | | | | | | | | | | (GH-27148) To my understanding, this is supposed to say "transaction". See the relevant source: https://github.com/python/cpython/blob/a158b20019b50e3ece6e4743ec4e6ae8d818b690/Modules/_sqlite/connection.cGH-L1434-L1467 (cherry picked from commit 1ca27f264730abaaa48b3c5e7c6eafb45017b824) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com> Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-43126: Expand docs on io.IOBase.readlines() method (GH-27061) (GH-27113)Miss Islington (bot)2021-07-131-0/+3
| | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 3b5b99da4b256a31933112f4a2385386149c19e1) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-44514: Add doctest testcleanup for configparser and bz2 (GH-26909) ↵Miss Islington (bot)2021-07-132-0/+10
| | | | | | | | | | (GH-27112) Add testcleanup section to configparser and bz2 documentation which removes temporary files created in the filesystem when 'make doctest' is run. (cherry picked from commit 48a5aa7f128caf5a46e4326c1fd285cd5fc8e59d) Co-authored-by: Kevin Follstad <kfollstad@gmail.com>
* bpo-44613: Make importlib.metadata non-provisional (GH-27101) (#27106)Miss Islington (bot)2021-07-131-4/+2
| | | | | | | | | * importlib.metadata is no longer provisional as of 3.10 * Add NEWS entry (cherry picked from commit f6954cdfc50060a54318fb2aea4d80408381243a) Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Barry Warsaw <barry@python.org>
* bpo-42194: Add "New in version: 3.9" to argparse.BooleanOptionalAction ↵Miss Islington (bot)2021-07-121-0/+2
| | | | | | | (GH-23026) (#27097) (cherry picked from commit da2e673c53974641a0e13941950e7976bbda64d5) Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com>
* bpo-26329: update os.path.normpath documentation (GH-20138) (GH-27094)Miss Islington (bot)2021-07-121-0/+8
| | | | | (cherry picked from commit 66c5853406bbcccecf35372795078c0641a5f385) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* Doc: Fix wrong exception used in example. (GH-26572)Miss Islington (bot)2021-07-091-1/+1
| | | | | (cherry picked from commit 15f0fc571c1fbc84b6b74dfeb373ca3d35e4c5d7) Co-authored-by: Julien Palard <julien@palard.fr>
* bpo-43453: Update and re-add example to typing runtime_checkable (GH-27013)Miss Islington (bot)2021-07-051-2/+7
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 17f94e28882e1e2b331ace93f42e8615383dee59) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* [3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)Ethan Furman2021-07-044-555/+1023
| | | * [Enum] revert enum module to 3.9
* bpo-34798: [doc] clearer presentation of pprint.PrettyPrinter constru… ↵Miss Islington (bot)2021-07-021-18/+30
| | | | | | | (GH-26967) (GH-26990) (cherry picked from commit 943e77d42d3f84b581f32c05f1fc8c05366b8ed3) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and ↵Steve Dower2021-06-301-0/+18
| | | | marshal.dumps (GH-26970)
* bpo-38062: [doc] clarify that atexit uses equality comparisons internally. ↵Miss Islington (bot)2021-06-291-5/+6
| | | | | | | | (GH-26935) (GH-26956) (cherry picked from commit 12803c59d54ff1a45a5b08cef82652ef199b3b07) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* bpo-42588: Update the docs for the TopologicalSorter.static_order() method ↵Miss Islington (bot)2021-06-291-4/+5
| | | | | | | (GH-26834) (cherry picked from commit 0d7f7975d55eff7e3dfcebd14e765fc6cd7d3e40) Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
* bpo-43977: Properly update the tp_flags of existing subclasses when their ↵Miss Islington (bot)2021-06-251-5/+8
| | | | | | | parents are registered (GH-26864) (cherry picked from commit ca2009d72a52a98bf43aafa9ad270a4fcfabfc89) Co-authored-by: Brandt Bucher <brandt@python.org>
* [3.10] bpo-44498: Issue a deprecation warning on asynchat, asyncore and ↵Miss Islington (bot)2021-06-241-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | smtpd import (GH-26882) (GH-26904) * Issue a deprecation warning on smtpd import * Also issue DeprecationWarnings for asynchat and asyncore * Fix some tests * test___all__ requires the word 'module' or 'package' in the deprecation warning text, so add those to smtpd, asynchat, and asyncore. * In test_support, use pprint now instead of asyncore as the landmark. * Add What's New * Use ..deprecated:: * Use ..deprecated:: * Update Lib/smtpd.py Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Update Doc/library/smtpd.rst Co-authored-by: Miro Hrončok <miro@hroncok.cz> * Import async{hat,ore} after the DeprecationWarning for this module Co-authored-by: Miro Hrončok <miro@hroncok.cz> (cherry picked from commit 8488b85c6397fe58f17fc00e047044c959ac0b04) Co-authored-by: Barry Warsaw <barry@python.org> Automerge-Triggered-By: GH:warsaw
* [3.10] bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757) ↵Erlend Egeberg Aasland2021-06-231-0/+8
| | | | | | | | | (GH-26885) (cherry picked from commit 4f725261c6cf23d259e8fdc205e12b76ef4d2d31, fbff5387c3e1f3904420fa5a27738c6c5881305b, and 8cec740820fc875117bfa7b6bdb10202ebeb8fd5) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:vstinner
* bpo-41621: Document defaultdict's default_factory parameter (GH-21945)Miss Islington (bot)2021-06-231-2/+2
| | | | | | It defaults to None and is positional only. (cherry picked from commit d1ae57027fc39ff60dcfc1b63881400e5ca3ce56) Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
* [doc] Improve punctuation atexit doc (GH-25629) (GH-26856)Miss Islington (bot)2021-06-221-7/+8
| | | | | | | (cherry picked from commit a6b47de07a304eaa37a1c5554ed00a3ec91f8407) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* bpo-44466: Faulthandler now detects the GC (GH-26823) (GH-26826)Victor Stinner2021-06-211-0/+4
| | | | | | The faulthandler module now detects if a fatal error occurs during a garbage collector collection (only if all_threads is true). (cherry picked from commit d19163912bfc790283724f05328bd31e4e65003d)
* bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992)Miss Islington (bot)2021-06-201-0/+3
| | | | | | Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit a317778fd58b1c6b250feffbdb4ecf15e293ef48) Co-authored-by: Georg Sauthoff <mail@georg.so>
* [3.10] bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752) Ethan Furman2021-06-181-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | * [Enum] reduce scope of new format behavior Instead of treating all Enums the same for format(), only user mixed-in enums will be affected. In other words, IntEnum and IntFlag will not be changing the format() behavior, due to the requirement that they be drop-in replacements of existing integer constants. If a user creates their own integer-based enum, then the new behavior will apply: class Grades(int, Enum): A = 5 B = 4 C = 3 D = 2 F = 0 Now: format(Grades.B) -> DeprecationWarning and '4' 3.12: -> no warning, and 'B'. (cherry picked from commit f60b07ab6c943fce084772c3c7731ab3bbd213ff) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* [3.10] bpo-44342: [Enum] improve test, add andrei kulakov to ACKS (GH-26726)Ethan Furman2021-06-161-1/+1
| | | | | | * [3.10] [Enum] improve test, add andrei kulakov to ACKS (GH-26726). (cherry picked from commit cb2014f2077c92c35486bf0db7e646a68478a7a5) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-38291: Remove mention of typing.io and typing.re again (GH-26113)Miss Islington (bot)2021-06-141-2/+10
| | | | | | | They were originally removed in GH-10173 per bpo-35089, but then readded in GH-21574. Cf. bpo-38291 for decision to remove. (cherry picked from commit 8a76683cfb842e12b57f6d276839f6c68fd94e1a) Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* bpo-44310: Note that lru_cache keep references to both arguments and ↵Miss Islington (bot)2021-06-141-6/+9
| | | | results (GH-26715) (GH-26716)
* bpo-43475: Fix the Python implementation of hash of Decimal NaN (GH-26679)Miss Islington (bot)2021-06-131-1/+1
| | | | | (cherry picked from commit 9f1c5f6e8af6ba3f659b2aea1e221ac9695828ba) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44362: ssl: improve deprecation warnings and docs (GH-26646)Miss Islington (bot)2021-06-111-6/+10
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit e26014f1c47d26d6097ff7a0f25384bfbde714a9) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-44242: [Enum] remove missing bits test from Flag creation ↵Ethan Furman2021-06-101-3/+82
| | | | | | | | | | (GH-26586) (GH-26635) Move the check for missing named flags in flag aliases from Flag creation to a new *verify* decorator.. (cherry picked from commit eea8148b7dff5ffc7b84433859ac819b1d92a74d) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* bpo-44322: Document more SyntaxError details. (GH-26562)Miss Islington (bot)2021-06-071-2/+9
| | | | | | | | | 1. SyntaxError args have a tuple of other attributes. 2. Attributes are adjusted for errors in f-string field expressions. 3. Compile() can raise SyntaxErrors. (cherry picked from commit 67dfa6f2a508c325715625fe442f2ce20270a8b3) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' ↵Miss Islington (bot)2021-06-041-1/+1
| | | | | | | (GH-26492) (GH-26538) (cherry picked from commit dda9ecbfece28aad7b8ba7eaf7951dd9816f78b1) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>