summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-42982: update pbkdf2 example & add another link (GH-30966) (#30968)Miss Islington (bot)2022-03-011-5/+7
| | | | | | | Automerge-Triggered-By: GH:gpshead (cherry picked from commit ace0aa2a2793ba4a2b03e56c4ec375c5470edee8) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Add missing "to" to two tp_flags notes (GH-31624)Miss Islington (bot)2022-03-011-2/+2
| | | | | (cherry picked from commit 422fdb37172c145043d4f1276adad43ff375f0d5) Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
* bpo-26897: Clarify Popen stdin, stdout, stderr file object docs (GH-30231)Miss Islington (bot)2022-02-251-14/+16
| | | | | (cherry picked from commit dd69f734218ac5d3a551227069ac53ee09b0cd3e) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Update dict/OrderedDict differences with code equivalents. (GH-31563)Miss Islington (bot)2022-02-251-6/+23
| | | | | (cherry picked from commit 26aba295a9c1bcb0812fe44bd7e68ddd1d8a6828) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) ↵Victor Stinner2022-02-253-17/+20
| | | | | | | | | | | | | | | (GH-31578) Rename the private undocumented float.__set_format__() method to float.__setformat__() to fix a typo introduced in Python 3.7. The method is only used by test_float. The change enables again test_float tests on the float format which were previously skipped because of the typo. The typo was introduced in Python 3.7 by bpo-20185 in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b. (cherry picked from commit 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6)
* bpo-46756: Fix authorization check in urllib.request (GH-31353)Miss Islington (bot)2022-02-253-8/+30
| | | | | | | | | Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which allowed to bypass authorization. For example, access to URI "example.org/foobar" was allowed if the user was authorized for URI "example.org/foo". (cherry picked from commit e2e72567a1c94c548868f6ee5329363e6036057a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34429: Noted TemporaryFile behavior on non-Posix/non-Cygwin systems ↵Miss Islington (bot)2022-02-251-0/+3
| | | | | | | (GH-31547) (cherry picked from commit 53ecf9e08d35801807daf74492c090a325f995b7) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
* bpo-46820: Refactor tests for ambiguous end of numerical literal (GH-31494)Miss Islington (bot)2022-02-251-89/+25
| | | | | (cherry picked from commit 98c3bea4d1c7335135e60946d0ec8cd5031fb6c0) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40421: Fix PyFrame_GetCode() documentation (GH-31535)Miss Islington (bot)2022-02-231-2/+2
| | | | | | | Fix PyFrame_GetBack() and PyFrame_GetCode() return type in the documentation. (cherry picked from commit 78859e58e4e016286e648d1dc155e0f6cebfa6ff) Co-authored-by: Victor Stinner <vstinner@python.org>
* Inherit asyncio proactor datagram transport from asyncio.DatagramTransport ↵Miss Islington (bot)2022-02-233-1/+5
| | | | | | | | | (GH-31512) (GH-31514) (cherry picked from commit cff4d5c5d29528299ec1ac5b3b3a6f7735577c01) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* Minor fixes to C API docs (GH-31501)Miss Islington (bot)2022-02-234-24/+28
| | | | | | | | | | | | | | | | | | | * C API docs: move PyErr_SetImportErrorSubclass docs It was in the section about warnings, but it makes more sense to put it with PyErr_SetImportError. * C API docs: document closeit argument to PyRun_AnyFileExFlags It was already documented for PyRun_SimpleFileExFlags. * textual fixes to unicode docs * Move paragraph about tp_dealloc into tp_dealloc section * __aiter__ returns an async iterator, not an awaitable (cherry picked from commit 43cf44ddcce6b225f959ea2a53e4817244ca6054) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46794: Bump up the libexpat version into 2.4.6 (GH-31487)Miss Islington (bot)2022-02-236-62/+133
| | | | | (cherry picked from commit 1935e1cc284942bec8006287c939e295e1a7bf13) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* bpo-46827: pass sock.type to getaddrinfo in sock_connect (GH-31499)Miss Islington (bot)2022-02-223-1/+22
| | | | | | | | Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> (cherry picked from commit 8fb94893e4a870ed3533e80c4bc2f1ebf1cfa9e7) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* [3.10] bpo-20923 : [doc] Explain ConfigParser 'valid section name' and ↵Miss Islington (bot)2022-02-221-0/+3
| | | | | | | | | | .SECTCRE (GH-31413) (GH-31506) (cherry picked from commit bba8008f99d615a02984422a3825082bb5621f5a) Co-authored-by: vidhya <96202776+Vidhyavinu@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
* [3.10] bpo-36557: Updated wording for using/windows (GH-31457) (GH-31504)Miss Islington (bot)2022-02-221-2/+2
| | | | | | | | (cherry picked from commit 9a0d941df4c3e1efb8b3017cd2c2de17e582fd5c) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
* bpo-46820: Fix a SyntaxError in a numeric literal followed by "not in" ↵Miss Islington (bot)2022-02-223-0/+15
| | | | | | | | | | | (GH-31479) (GH-31493) Fix parsing a numeric literal immediately (without spaces) followed by "not in" keywords, like in "1not in x". Now the parser only emits a warning, not a syntax error. (cherry picked from commit 090e5c4b946b28f50fce445916c5d3ec45c8f45f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] bpo-46732: fix __bool__ docstring (GH-31301) (GH-31473)Miss Islington (bot)2022-02-212-1/+3
| | | | | | (cherry picked from commit 0a222db2bca63070f429c0e613707da1bdfaf0e0) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453) (GH-31472)Miss Islington (bot)2022-02-213-8/+16
| | | | | | | | | | | | | | | | | | | Curly brackets were never allowed in namespace URIs according to RFC 3986, and so-called namespace-validating XML parsers have the right to reject them a invalid URIs. libexpat >=2.4.5 has become strcter in that regard due to related security issues; with ET.XML instantiating a namespace-aware parser under the hood, this test has no future in CPython. References: - https://datatracker.ietf.org/doc/html/rfc3968 - https://www.w3.org/TR/xml-names/ Also, test_minidom.py: Support Expat >=2.4.5 (cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e) Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
* bpo-46232: Fix parsing of certs with bit string in DN (GH-30351)Miss Islington (bot)2022-02-212-7/+21
| | | | | (cherry picked from commit be095f6c32188bba02079d086ac8639ea37cec3c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-39327: Close file descriptors as soon as possible in shutil.rmtree ↵Miss Islington (bot)2022-02-213-2/+13
| | | | | | | | | | | (GH-31384) It fixes the "Text File Busy" OSError when using 'rmtree' on a windows-managed filesystem in via the VirtualBox shared folder (and possible other scenarios like a windows-managed network file system). (cherry picked from commit b77158b4da449ec5b8f682816a79d004fd65ed07) Co-authored-by: Lital Natan <litaln@gmail.com>
* [docs] Correct typos in SSLContext.sni_callback (GH-30623) (GH-31421)Miss Islington (bot)2022-02-211-3/+3
| | | | | | Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de> (cherry picked from commit f80a97b492f41afd3c42bb2bd6da7b2828dca215) Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
* [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642) (GH-31030)Erlend Egeberg Aasland2022-02-213-66/+79
| | | | | | | | | | | * [3.10] bpo-43853: Expand test suite for SQLite UDF's (GH-27642). (cherry picked from commit 3eb3b4f270757f66c7fb6dcf5afa416ee1582a4b) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> * Fix test_func_return_too_large_int GH-27613 (bpo 44839) was not backported, so exceptions differ between main (3.11) and older versions.
* bpo-46672: fix `NameError` in `asyncio.gather` if type check fails ↵Miss Islington (bot)2022-02-203-1/+17
| | | | | | | | | | (GH-31187) (GH-31440) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> (cherry picked from commit 4ab8167b9c60d1a04b2e3116d0c52db254b68cda) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] replace `self` param with more appropriate `cls` in classmethods ↵Andrew Svetlov2022-02-201-2/+2
| | | | | | | | | (GH-31402) (GH-31446) (cherry picked from commit a3fcca4af1cb418dc802feb75100ecc1a286afaa) Co-authored-by: Josh Smith <cmyuiosu@gmail.com> Co-authored-by: Josh Smith <cmyuiosu@gmail.com>
* [3.10] Raise TypeError if SSLSocket is passed to asyncio transport-based ↵Andrew Svetlov2022-02-203-10/+22
| | | | | | | methods (GH-31442). (GH-31443) (cherry picked from commit 1f9d4c93af380d00bf2e24bc5f5ce662d41504aa) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
* Improve discussion about how __getattr__ is invoked. (GH-31435) (GH-31437)Miss Islington (bot)2022-02-201-9/+7
|
* Counter doc mentions three methods, but lists four (GH-30706)Miss Islington (bot)2022-02-191-1/+1
| | | | | | Was probably caused by the addition of the `total()` method (cherry picked from commit 99331fcf175b03b6b82451ac9aa953b476ab48e0) Co-authored-by: Charles Brunet <charles.brunet@optelgroup.com>
* bpo-46603: improve coverage of `typing._strip_annotations` (GH-31063)Miss Islington (bot)2022-02-191-0/+9
| | | | | (cherry picked from commit 25c0b9d243b64ccd2eeab483089eaf7e4b4d5834) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] bpo-46784: Add newly exported expat symbols to the namespace. ↵Gregory P. Smith2022-02-192-0/+6
| | | | | | | | | | | | | | | | | | | | | | (GH-31397) (GH-31420) The libexpat 2.4.1 upgrade from introduced the following new exported symbols: * `testingAccountingGetCountBytesDirect` * `testingAccountingGetCountBytesIndirect` * `unsignedCharToPrintable` * `XML_SetBillionLaughsAttackProtectionActivationThreshold` * `XML_SetBillionLaughsAttackProtectionMaximumAmplification` We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h) (The newer libexpat upgrade has no new symbols). Automerge-Triggered-By: GH:gpshead (cherry picked from commit 6312c1052c0186b4596fc45c42fd3ade9f8f5911) Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com> Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
* bpo-46777: Fix incorrect use of directives in asyncio documentation (GH-31388)Miss Islington (bot)2022-02-187-181/+82
| | | | | (cherry picked from commit 2923d87ca258b9d421e8147b12f0d98295ee3f8e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* docs: Link `match` statement in tutorial (GH-31396)Miss Islington (bot)2022-02-181-1/+1
| | | | | | | | | Add a link to the `match` statement from its section in the tutorial. Automerge-Triggered-By: GH:Mariatta (cherry picked from commit 35f55cc5c690a97853f1b544aac53574ab755b54) Co-authored-by: William Andrea <william.j.andrea@gmail.com>
* Fix mistake in barry_as_FLUFL test (GH-31392)Miss Islington (bot)2022-02-181-1/+1
| | | | | | Use assertEqual(), not assertTrue(lineno, 2) (cherry picked from commit 5f1c205dcec0adf68b76ba78247a0ec1fa9a7b66) Co-authored-by: Patrick Reader <_@pxeger.com>
* bpo-46400: Update libexpat from 2.4.1 to 2.4.4 (GH-31022) (GH-31296)Dong-hee Na2022-02-176-31/+238
| | | Co-authored-by: Cyril Jouve <jv.cyril@gmail.com>
* [3.10] Update html.parser.rst (GH-30678) (GH-31385)Miss Islington (bot)2022-02-171-1/+1
| | | | | | | | | | | | This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html) module will - fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’); - mention the parameter names of the `HTMLParser.handle_*` methods where missing. (cherry picked from commit 2945f5a7c51200bfc5c493ccb626fc414e1385b1) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Automerge-Triggered-By: GH:merwok
* [3.10] Become a CODEOWNER for typing (GH-31374) (GH-31382)Miss Islington (bot)2022-02-171-1/+1
| | | | | | | | (cherry picked from commit 6f1efd19a70839d480e4b1fcd9fecd3a8725824b) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Automerge-Triggered-By: GH:JelleZijlstra
* [3.10] bpo-46333: Honor `module` parameter in ForwardRef (GH-30536) (GH-31379)Miss Islington (bot)2022-02-174-2/+20
| | | | | | | | | | | | | | | The `module` parameter carries semantic information about the forward ref. Forward refs are different if they refer to different module even if they have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods. Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 6e7b813195f9bd6a2a15c1f00ef2c0180f6c751a) Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com> Automerge-Triggered-By: GH:JelleZijlstra
* [3.10] bpo-46724: Use `JUMP_ABSOLUTE` for all backward jumps. (GH-31326) ↵Mark Shannon2022-02-166-14/+47
| | | | (GH-31354)
* bpo-46762: Fix an assert failure in f-strings where > or < is the last ↵Miss Islington (bot)2022-02-163-10/+14
| | | | | | | character if the f-string is missing a trailing right brace. (GH-31365) (cherry picked from commit ffd9f8ff84ed53c956b16d027f7d2926ea631051) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
* Update the OMG link (GH-30383)Miss Islington (bot)2022-02-151-1/+1
| | | | | | | (cherry picked from commit 04215a427232e55efdc1adcda50a15197f518ca9) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
* bpo-46741: Update `asyncio.protocols.BufferedProtocol` docstring (GH-31327) ↵Miss Islington (bot)2022-02-151-4/+0
| | | | | | | | | | (GH-31362) The docstring for `BufferedProtocol` states that the class is still an "experimental API", but it has been considered stable since 3.8. (cherry picked from commit 1d81fdc4c004511c25f74db0e04ddbbb8a04ce6d) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.10] bpo-46728: fix docstring of combinations_with_replacement for ↵DongGeon Lee2022-02-152-4/+4
| | | | consistency (GH-31293) (GH-31350)
* bpo-46436: Fix command-line option -d/--directory in module http.server ↵Miss Islington (bot)2022-02-142-13/+17
| | | | | | | | | | | | | (GH-30701) Fix command-line option -d/--directory in http.server main function that was ignored when combined with --cgi. Automerge-Triggered-By: GH:merwok (cherry picked from commit 2d080347d74078a55c47715d232d1ab8dc8cd603) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Fix the signature of multiprocessing.set_executable (GH-31276) Miss Islington (bot)2022-02-141-2/+2
| | | | | | | | Automerge-Triggered-By: GH:merwok (cherry picked from commit 4f9386661d51b78348395e78710f3bfbee9fd1de) Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* Update __main__.rst (GH-30896) Miss Islington (bot)2022-02-141-1/+1
| | | | | | | | | The reference to `venv` appears in the paragraph below, instead of above. Fixed the documentation. (cherry picked from commit 4e4e7c2684b80350e82d82e4feeda5de24d362b9) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
* doc: use colon for all color's rangs (GH-28998) (#31336)Miss Islington (bot)2022-02-141-2/+2
| | | | | | | (cherry picked from commit 6b9f27dd0b5da53b1fd648494879d857572bec80) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com> Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
* bpo-38619: Update the documentation for UUID.hex (GH-29830)Miss Islington (bot)2022-02-141-1/+1
| | | | | | | | Explicitly state that it is lowercase. Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 5d53cf30f9cb3758849e859db5d4602cb7c521f7) Co-authored-by: 180909 <wjh180909@gmail.com>
* Fix minor grammar error (GH-31325)Miss Islington (bot)2022-02-141-1/+1
| | | | | | "an" followed by consonant should be "a" (cherry picked from commit 0d29e7a06f98e8312b699d4531d27b76add1249f) Co-authored-by: Scott Noyes <snoyes@gmail.com>
* Fix a typo in Doc/faq/programming.rst (GH-31243)Miss Islington (bot)2022-02-141-1/+1
| | | | | | is not longer used -> is no longer used (cherry picked from commit ff5a16759744ee0a43c5d1c209f47e256abc7718) Co-authored-by: Cooper Lees <me@cooperlees.com>
* [3.10] bpo-46747: Add missing key parameters in the bisect docs (GH-31323) ↵Dennis Sweeney2022-02-141-2/+2
| | | | | | | | (GH-31329) Added *key* parameter to `bisect.bisect()` and `bisect.insort()` in bisect module docs. (cherry picked from commit 96084f4256d2d523b0a4d7d900322b032326e3ed) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* Corrections to format precision description. (GH-31291)Miss Islington (bot)2022-02-141-5/+6
| | | | | | | | | | | | | | * `precision` field is a decimal integer * clarify that stated limitations are on presentation type rather than input value type. Especially misleading is "precision is not allowed for integer values", since integer value input to a format like `.1f` is fine. * regarding max field size, replace "non-number" with "string", which is the only non-numeric presentation type Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit 1d6ce67c29aa2166ef326952cb605b908fb4f987) Co-authored-by: John Belmonte <john@neggie.net>