summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42800: Add audit events for f_code and tb_frame (GH-24182)Steve Dower2021-05-032-1/+4
| | | | | | | | Accessing the following attributes will now fire PEP 578 style audit hooks as (object.__getattr__, obj, name): * PyTracebackObject: tb_frame * PyFrameObject: f_code * PyGenObject: gi_code, gi_frame * PyCoroObject: cr_code, cr_frame * PyAsyncGenObject: ag_code, ag_frame
* [3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)Miss Islington (bot)2021-05-031-1/+1
| | | | | | | | (cherry picked from commit 440c0257262fec6f519bb81e49f1a4f341aeed66) Co-authored-by: Julien Palard <julien@palard.fr> Automerge-Triggered-By: GH:JulienPalard
* bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated ↵Miss Islington (bot)2021-05-021-2/+17
| | | | | | | | | | | | (GH-25099) (GH-25815) Reverts commit e653d4d8e820a7a004ad399530af0135b45db27a and makes parsing even more strict. Like socket.inet_pton() any leading zero is now treated as invalid input. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 60ce8f0be6354ad565393ab449d8de5d713f35bc)
* Fix exceptions mentioned in os.setxattr() docs (GH-25742) (GH-25794)Miss Islington (bot)2021-05-011-2/+2
| | | | | | | (cherry picked from commit 779232413a367cd3357482e675a5518de102a90e) Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com> Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
* Fixing doc for callback for lambda (GG-25779) (GH-25788)Miss Islington (bot)2021-05-011-1/+1
| | | | | | | | Fixing callback for lambda when no return value is provided (cherry picked from commit 50c21ad35372983680b44130be560d856c5f27ca) Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com> Co-authored-by: Shreyash Sharma <shreyash.sharma@philips.com>
* bpo-43971: Add spaces around annotated arg default '=' (GH-25702)Miss Islington (bot)2021-05-011-1/+1
| | | | | | | | Result: "quantity_on_hand: int = 0". (cherry picked from commit e726a902b7c73a7056b7421d801e47ffff255873) Co-authored-by: Mohamed Moselhy <look4d@gmail.com> Co-authored-by: Mohamed Moselhy <look4d@gmail.com>
* bpo-43954: Fix a missing word in the unittest docs (GH-25672)Miss Islington (bot)2021-04-301-2/+3
| | | | | (cherry picked from commit 2abbd8f2add5e80b86a965625b9a77ae94a101cd) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-42589: Change URL for 'from' link when used in a raised exception (GH-23872)Miss Islington (bot)2021-04-291-2/+2
| | | | | | | | Links for 'raise Exception from x' target to 'The raise statement' (7.8) section instead of 'The import statement' (7.11) section. There are more modified links than in the bug report because I searched some other ones which can get the same improvement. (cherry picked from commit 2fd928c8c1328424130cb9c51fc02ad5f9a66328) Co-authored-by: sblondon <sblondon@users.noreply.github.com>
* [3.9] bpo-43882 - urllib.parse should sanitize urls containing ASCII newline ↵Miss Islington (bot)2021-04-291-0/+13
| | | | | | | | | | and tabs. (GH-25595) (GH-25725) * bpo-43882 - urllib.parse should sanitize urls containing ASCII newline and tabs. (GH-25595) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 76cd81d60310d65d01f9d7b48a8985d8ab89c8b4) Co-authored-by: Senthil Kumaran <skumaran@gatech.edu>
* [doc] Be more clear on super() regarding multiple base classes methods ↵Miss Islington (bot)2021-04-291-1/+1
| | | | | | | | | (GH-21789) (GH-25706) (cherry picked from commit 69a733bda34d413d3ad545ef3132240e5d2a7c0c) Co-authored-by: Andre Delfino <adelfino@gmail.com> Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-43472: Ensure PyInterpreterState_New audit events are raised when called ↵Miss Islington (bot)2021-04-281-2/+2
| | | | | | | | | through _xxsubinterpreters module (GH-25506) (GH-25508) (cherry picked from commit 7b86e47617d81a4b14d929743425f448971e8c86) Co-authored-by: Steve Dower <steve.dower@python.org> Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37751: Update `codecs.register()` doc. (GH-25643)Miss Islington (bot)2021-04-281-3/+7
| | | | | (cherry picked from commit 5c84bb506aaca01f5f750116d8f7a41d41f8124d) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* [doc] Remove duplicated operator.itemgetter example (GH-24178) (#25646)Miss Islington (bot)2021-04-271-5/+2
| | | | | | | * Remove duplicated itemgetter example * Add spaces (cherry picked from commit 743e2bae10d2010fd1e29b772c9da64efc7c9c47) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Use the zero argument form of super() in examples for Python3 docs. ↵Miss Islington (bot)2021-04-265-6/+6
| | | | | | | (GH-22314) (GH-25638) (cherry picked from commit 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) ↵Miss Islington (bot)2021-04-261-1/+1
| | | | | | | | | (GH-25635) (cherry picked from commit 8a307e488d596914a7a5df6b2fdd945f8ce81e69) Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com> Co-authored-by: Llandy Riveron Del Risco <llandy3d@gmail.com>
* Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)Miss Islington (bot)2021-04-261-2/+1
| | | | | | | | | | | | The check about the f argument type was removed in this commit: https://github.com/python/cpython/commit/2c94aa567e525c82041ad68a3174d8c3acbf37e2 Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with this bug. (cherry picked from commit bd25bcd37a3a41a0e08208e969f0c02287850c61) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
* Update asyncio-subprocess.rst (GH-21680) (GH-25621)Miss Islington (bot)2021-04-261-1/+1
| | | | | (cherry picked from commit 3c4850e222388889426e250ff43308e4802dc582) Co-authored-by: Gabriel R F <github@gabrf.com>
* [3.9] documentation: clarification about the function remove in os library ↵Senthil Kumaran2021-04-261-0/+1
| | | | | | | (GH-19024) (GH-25620) (cherry picked from commit b6daab2f676de1773d8f35fb362fe4c57449301d) Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
* Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)Miss Islington (bot)2021-04-261-1/+1
| | | | | (cherry picked from commit 7be870f9456ad04c3b67881497de6346d83805d2) Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
* Fix id of 'Internet Message Format' RFC in email doc GH-25613Miss Islington (bot)2021-04-262-2/+2
| | | | | | | | | | | | | Previous ID (5233) refers to "Sieve Email Filtering: Subaddress Extension". It seems that the actual reference should be "Internet Message Format" RFC 5322 (https://tools.ietf.org/html/rfc5322). (The typo probably comes from commit 29d1bc0842 in which the ID of this RFC got updated from the obsolete 2822.) Co-authored-by: Ambrose Chua <ambrose@hey.com> (cherry picked from commit cb5c802dcf8851663c4eac5d73f968f626a3a1dc) Co-authored-by: Denis Laxalde <denis@laxalde.org>
* Fix copy.Error casing in documentation GH-22004 (#25611)Miss Islington (bot)2021-04-261-1/+1
| | | | | | | (cherry picked from commit 0d930f108cb8ba66f54197175c1fba0c38253e4a) Co-authored-by: Andre Delfino <adelfino@gmail.com> Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Remove mention of dst parameter from description of os.lstat() (GH-24704)Miss Islington (bot)2021-04-251-1/+1
| | | | | | | It looks like it was accidentally copy-pasted in 6fa7aada9bd3616e0beeb266e818497b2ec1c859. (cherry picked from commit 7f8e072c6dc88d6973d81f8fd572c04c88e7e3d7) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* BaseHTTPRequestHandler, that path includes query (GH-25597)Miss Islington (bot)2021-04-251-1/+3
| | | | | | | | * Clarify, for BaseHTTPRequestHandler, that path includes query Co-authored-by: David Jones <drj@pobox.com> (cherry picked from commit a89d8a94a0dd0bd45349efad6d5ad68641f4ff9a) Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
* bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of ↵Miss Islington (bot)2021-04-231-1/+6
| | | | | | | | | | sys.getwindowsversion() (GH-25500) The sys module uses the kernel32.dll version number, which can vary from the "actual" Windows version. Since the best option for getting the version is WMI (which is expensive), we switch back to launching cmd.exe (which is also expensive, but a lot less code on our part). sys.getwindowsversion() is not updated to avoid launching executables from that module. (cherry picked from commit 2a3f4899c63806439e5bcea0c30f7e6a6295a763) Co-authored-by: Shreyan Avigyan <shreyan.avigyan@gmail.com>
* bpo-43856: Add a versionadded directive to the importlib.metadata docs ↵Jason R. Coombs2021-04-231-0/+2
| | | | | | | | | | | (GH-25445) Use a versionadded directive to generate the text "New in version 3.8." (to match with the documentation of other modules). Automerge-Triggered-By: GH:jaraco. (cherry picked from commit adf24bd835ed8f76dcc51aa98c8c54275e86965b) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-28724: Doc: Move socket.send_fds and socket.recv_fds docs to right ↵Miss Islington (bot)2021-04-221-23/+26
| | | | | | | section (GH-22608) (cherry picked from commit 660592f67c0d825b06eb4a38ccc04b34a1f01f00) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
* [3.9] bpo-43522: Fix SSLContext.hostname_checks_common_name (GH-24899) ↵Christian Heimes2021-04-171-0/+5
| | | | | | | | | | | (GH-25451) Fix problem with ssl.SSLContext.hostname_checks_common_name. OpenSSL does not copy hostflags from *struct SSL_CTX* to *struct SSL*. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit b467d9a24011992242c95d9157d3455f8a84466b) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-43723: Revert IDLE doc change (GH-25174)Terry Jan Reedy2021-04-161-1/+1
| | | Change threading.activeCount to synonym threading.active_count.
* bpo-20364: Improve sqlite3 placeholder docs (GH-25003)Miss Islington (bot)2021-04-141-38/+33
| | | | | (cherry picked from commit 3386ca0b36327afeef8d7eff277b2aed1030c08d) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* bpo-41661: Document os.path.relpath() exception on Windows with different ↵Miss Islington (bot)2021-04-121-1/+2
| | | | | | | drives (GH-25346) (cherry picked from commit 67c0b3d89c4da9750fdb43fc66d3924681b22d2e) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-38820: OpenSSL 3.0.0: Use supported hashing algos in doc test (GH-25319)Miss Islington (bot)2021-04-091-2/+2
| | | | | | | | | ripemd160 is not available in OpenSSL 3.0.0's default crypto provider. It's only present in legacy provider. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 2d7fdc90731e132f9d6b43852ee112f25831394b) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-43794: OpenSSL 3.0.0: set OP_IGNORE_UNEXPECTED_EOF by default (GH-25309)Miss Islington (bot)2021-04-091-0/+8
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 6f37ebc61e9e0d13bcb1a2ddb7fc9723c04b6372) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-43087: Fix error in ctypes "Incomplete Types" doc (GH-24404) Miss Islington (bot)2021-04-081-2/+2
| | | | | | | The previous "Fundamental data types" section says a c_char_p must be bytes (or None). (cherry picked from commit 14829b09eb652f457cf837836909169746a810f0) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294)Steve Dower2021-04-071-7/+14
| | | Co-authored-by: Barney Gale <barney.gale@gmail.com>
* bpo-17305: Link to the third-party idna package. (GH-25208)Miss Islington (bot)2021-04-061-0/+3
| | | | | | So long as we don't have idna2008 in the standard library, we should at least point people to the third-party solution. (cherry picked from commit 1d023e374cf96d143b065242131ddc9b889f9a1e) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.9] bpo-41370: Add note about ForwardRefs and PEP585 generic types in docs ↵Miss Islington (bot)2021-04-041-2/+7
| | | | | | | | | | (GH-25183) (GH-25184) (cherry picked from commit 2b5913b4ee5852a28ca1509478f5582beb3aff7b) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Automerge-Triggered-By: GH:gvanrossum
* bpo-43705: Document that SyntaxError's offsets are 1-indexed (GH-25153)Miss Islington (bot)2021-04-021-3/+19
| | | | | | | | Changed the inline mentions of the attributes into a proper attribute list like `SystemExit` has. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit b2a91e0c9ee18b50cc86b21211c2258520a9f5d0) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* Doc: io: Remove "In-memory streams" section (GH-24927)Miss Islington (bot)2021-04-011-10/+0
| | | | | (cherry picked from commit b045cdaf341f80b7d1e4804b932b6e415600c2e1) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
* bpo-42840: Document providing kwargs to type. (GH-24173)Miss Islington (bot)2021-04-011-1/+8
| | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 72fcd14a82369ed32a5846d76f50e3026cf4eec2) Co-authored-by: Erik Soma <stillusingirc@gmail.com>
* bpo-42225: IDLE - document two unix-related problems. (GH-25078)Miss Islington (bot)2021-03-311-2/+17
| | | | | | | 1. Bad IP masquerade rules can prevent startup. 2. X cannot handle some complex colored chars. (cherry picked from commit 1b4a9c7956d5dc64f8002f62bf0faae2d1892f90) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-31907: [doc] clarify that str.format() does not support arbitrary ↵Miss Islington (bot)2021-03-281-2/+2
| | | | | | | | | expressions (GH-25053) (GH-25055) (cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-43644: Add docs for importlib.resources.as_file. (GH-25048)Miss Islington (bot)2021-03-281-0/+16
| | | | | (cherry picked from commit af50c84643ce21cfbdfdabbdfae6bd5e1368c542) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-39616: clarify SSLContext.check_hostname effect (GH-18484)Miss Islington (bot)2021-03-271-1/+1
| | | | | | | | It doesn't actually affect whether match_hostname() is called (it never is in this context any longer), but whether hostname verification occurs in the first place. (cherry picked from commit 9798cef92b882cd82a338d3368eaf3c4a32f5c2d) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* bpo-43620: Remove reference to os.sep from os.path.join() doc (GH-25025) ↵Miss Islington (bot)2021-03-261-5/+4
| | | | | | | | (#25027) - removed ambiguous reference to os.sep from os.path.join() doc (cherry picked from commit 21a2cabb3795f5170c746ab8f29e9d25c7442550) Co-authored-by: Jared Sutton <jpsutton@gmail.com>
* Clarify attribute docs on types.ModuleType (GH-24974)Miss Islington (bot)2021-03-231-2/+30
| | | | | (cherry picked from commit 76b5d714e4e2b9f3b63847325cba51d4c4dc36bc) Co-authored-by: Brett Cannon <brett@python.org>
* Add a warning block around the get_referrers() documentation (GH-24511)Miss Islington (bot)2021-03-181-4/+5
| | | | | (cherry picked from commit 813db24f7c2c536d587d1832c3c52b44fa9e242e) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] [doc] Document logging.basicConfig default format (GH-23710) (GH-24835)Miss Islington (bot)2021-03-151-1/+3
| | | (cherry picked from commit 35cacce5253c50eed0d285836f9ca0ac568991ca)
* Fix typos in unittest documentation (GH-24194)Miss Islington (bot)2021-03-141-3/+3
| | | | | | | * addCleanupClass -> addClassCleanup * doCleanupsClass -> doClassCleanups (cherry picked from commit e0e398ef1855f3db708c682f70adc412f0877d59) Co-authored-by: Conchylicultor <etiennefg.pot@gmail.com>
* Update link to Django's Context class. (GH-24805) (#24841)Miss Islington (bot)2021-03-132-2/+2
| | | | | | | * Update link to Django's Context class. * Update link to get-pip.py. (cherry picked from commit d0a445490e2c0e1d2aef3005f14211d9a85196bf) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.9] bpo-43353: Document that logging.getLevelName() accepts string ↵Mariusz Felisiak2021-03-121-8/+17
| | | | | | | representation of logging level. (GH-24693) (GH-24826) (cherry picked from commit bbba28212ce0f58096a4043f32442c6e727b74fc) Automerge-Triggered-By: GH:vsajip