summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* In ast doc, update 'below' to 'above' (GH-94967)Miss Islington (bot)2022-07-181-1/+1
| | | | | | The included asdl file was moved from 'below' to 'above' in 3.9. (cherry picked from commit 7b617be4ab6df871cfa9d2127908cb1373578dc0) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-94821: Fix autobind of empty unix domain address (GH-94826)Miss Islington (bot)2022-07-173-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When binding a unix socket to an empty address on Linux, the socket is automatically bound to an available address in the abstract namespace. >>> s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) >>> s.bind("") >>> s.getsockname() b'\x0075499' Since python 3.9, the socket is bound to the one address: >>> s.getsockname() b'\x00' And trying to bind multiple sockets will fail with: Traceback (most recent call last): File "/home/nsoffer/src/cpython/Lib/test/test_socket.py", line 5553, in testAutobind s2.bind("") OSError: [Errno 98] Address already in use Added 2 tests: - Auto binding empty address on Linux - Failing to bind an empty address on other platforms Fixes f6b3a07b7df6 (bpo-44493: Add missing terminated NUL in sockaddr_un's length (GH-26866) (cherry picked from commit c22f134211743cd5ad14cec1dd4f527bee542b4c) Co-authored-by: Nir Soffer <nsoffer@redhat.com>
* gh-94864: Fix PyArg_Parse* with deprecated format units "u" and "Z" (GH-94902)Miss Islington (bot)2022-07-173-1/+16
| | | | | | It returned 1 (success) when warnings are turned into exceptions. (cherry picked from commit 107c21c5d56682320b38c01b5575c1604a429239) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-94869: Fix the location in some expressions for multi-line f-string ast ↵Miss Islington (bot)2022-07-163-3/+37
| | | | | | | | | nodes (GH-94895) (#94911) (cherry picked from commit 2e9da8e3522764d09f1d6054a2be567e91a30812) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-90844: Allow virtual environments to correctly launch when they have ↵Miss Islington (bot)2022-07-162-4/+14
| | | | | | | spaces in the path (GH-94903) (cherry picked from commit 4b4439daed3992a5c5a83b86596d6e00ac3c1203) Co-authored-by: Steve Dower <steve.dower@python.org>
* Add additional pointers to pathlib's mapping to os.path functions (GH-94828)Miss Islington (bot)2022-07-151-1/+2
| | | | | | | | | | | | | | | | * Add additional pointers to pathlib's mapping to os.path functions os.path.splitext has a somewhat quirky signature since it mixes the path and filename components but I wanted the documentation to mention `PurePath.stem` as the natural counterpart to `PurePath.suffix` for the common use of `os.path.splitext` to turn "file.py" into "file" and "py". Technically this could have some discussion of how to handle the parent directory hierarchy but that seems a bit out of keeping with the spirit of this table so I omitted mentioning `PurePath.parents` here. * Update Doc/library/pathlib.rst Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 3789c635772fbdeb5d0fc32aa811fd6b1d935a60) Co-authored-by: Chris Adams <chris@improbable.org>
* [3.10] [doc] Update cookbook example and add information about queue types. ↵Miss Islington (bot)2022-07-152-1/+11
| | | | | (GH-94854) (GH-94872) (cherry picked from commit dc54193095e8ac8d73489f7ab133e016a5556256)
* [3.10] gh-94841: Ensure arena_map_get() is inlined in PyObject_Free() (GH-94842)Neil Schemenauer2022-07-152-1/+12
| | | | | Need to define ALWAYS_INLINE macro for 3.10. Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* Docs: fix typo in sqlite3.rst (GH-94798)Miss Islington (bot)2022-07-141-1/+1
| | | | | | Colum -> Column (cherry picked from commit 9ea72e9d8d9c7ff7c0cec4bacf6071ff4f1f6238) Co-authored-by: Ikko Ashimine <eltociear@gmail.com>
* idlelib: replace 'while 1' with 'while True' (GH-94827)Miss Islington (bot)2022-07-146-8/+8
| | | | | (cherry picked from commit 6a15f918b5a6fb5113d5332ebf27df1d5360e66c) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-90359: Unify documentation style for datetime.rst (gh-94836)Miss Islington (bot)2022-07-141-0/+7
| | | | | (cherry picked from commit 967da5febbc77b36a5b14863e61db3a2d441a940) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* gh-90359: Update documentation to follow PEP 495. (gh-94800)Miss Islington (bot)2022-07-141-0/+12
| | | | | (cherry picked from commit 07374cce52abb7fd39729dc1b646ca3029b64c64) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* gh-90815: Fix test_embed for Windows PGO build with mimalloc (GH-94790)Miss Islington (bot)2022-07-131-0/+2
| | | | | | Fixes the failure of PGO building with `mimalloc` on Windows, ensuring that `test_bpo20891` does not break profiling data (`python31*.pgc`). (cherry picked from commit 4a6bb30eb600e3b18f4a84c1be922c07758c613f) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* [3.10] GH-94736: mark SemLock test as linux only (GH-94750) (#94753)Miss Islington (bot)2022-07-111-0/+1
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* bpo-45924: Fix asyncio incorrect traceback when future's exception is raised ↵Miss Islington (bot)2022-07-114-2/+47
| | | | | | | | | multiple times (GH-30274) (#94748) (cherry picked from commit 86c1df18727568758cc329baddc1836e45664023) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* GH-94736: Fix _multiprocessing.SemLock subclassing (GH-94738)Miss Islington (bot)2022-07-113-4/+14
| | | | | | | | | | | | * fix allocator and deallocator * 📜🤖 Added by blurb_it. * code review Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit f5b76330cfb93e1ad1a77c71dafe719f6a808cec) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] GH-94329: Don't raise on excessive stack consumption (GH-94421) (#94448)Mark Shannon2022-07-113-7/+8
|
* GH-77265: Document NaN handling in statistics functions that sort or count ↵Miss Islington (bot)2022-07-101-0/+29
| | | | (GH-94676) (#94725)
* gh-94637: Release GIL in SSLContext.set_default_verify_paths (GH-94658)Miss Islington (bot)2022-07-092-1/+8
| | | | | (cherry picked from commit 78307c7dc2352b6633138466debd4c10fae32970) Co-authored-by: Christian Heimes <christian@python.org>
* Use mdash-es consistently in the library docs index (GH-92762)Miss Islington (bot)2022-07-081-4/+4
| | | | | (cherry picked from commit efb20a97c491821acb03564f526afaf9eed47eef) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.10] gh-94622: Add more references to the sqlite3 types anchor (GH-94623). ↵Erlend Egeberg Aasland2022-07-081-4/+4
| | | | | | | (#94679) (cherry picked from commit e5b841a4037d1c2ce3d12a584facf800ae36332a) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-94321: Document sqlite3.PrepareProtocol (GH-94620) (#94671)Erlend Egeberg Aasland2022-07-073-0/+17
| | | | | (cherry picked from commit fb6dccae348b954d9f625031b54711a9a33da525) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-92743: Remove copyright sign next to "Raymond Hettinger" (#94665)Guy Yagev2022-07-071-1/+1
| | | Closes GH-92743
* GH-94644: fix test_curses ref leak (GH-94647)Miss Islington (bot)2022-07-071-0/+1
| | | | | (cherry picked from commit 277f55cb04409ccdf651d43df5eb9dcb3ee3128c) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] gh-94430: Allow params named `module` or `self` with custom C names ↵Erlend Egeberg Aasland2022-07-073-2/+50
| | | | | | | in AC (GH-94431) (#94650) (cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-94628: Add explicit parameter list to sqlite3.connect docs ↵Erlend Egeberg Aasland2022-07-071-76/+105
| | | | | | | | (GH-94629) (#94646) Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>. (cherry picked from commit 3eb2b9634fdc6826a558fa5aa820dc6e69b7800e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-94630: Update sqlite3 docs with positional-only and keyword-only symbols ↵Miss Islington (bot)2022-07-061-11/+11
| | | | | | | (GH-94631) (cherry picked from commit 94988603f3c934f95220f09aefffd50c0a5d3367) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-94017: Improve clarity of sqlite3 transaction handling docs (GH-94320)Miss Islington (bot)2022-07-061-39/+61
| | | | | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> (cherry picked from commit 760b8cf0c887fbc5191611a7e7d4b8c0c4f15edc) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] gh-94510: Raise on re-entrant calls to sys.setprofile and syssettrace ↵Pablo Galindo Salgado2022-07-055-3/+105
| | | | | | (GH-94511) (#94579) Co-authored-by: Łukasz Langa <lukasz@langa.pl>. Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] gh-91330: Tests and docs for dataclass descriptor-typed fields ↵Łukasz Langa2022-07-053-0/+167
| | | | | | | | (GH-94424) (GH-94577) Co-authored-by: Erik De Bonte <erikd@microsoft.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 5f319308a820f49fec66fc3ade50bbaa9fe2105d)
* [3.10] gh-94360: Fix a tokenizer crash when reading encoded files with ↵Pablo Galindo Salgado2022-07-053-5/+15
| | | | | | | | | | | syntax errors from stdin (GH-94386) (GH-94574) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 36fcde61ba48c4e918830691ecf4092e4e3b9b99)
* gh-90355: Add isolated flag if currently isolated (GH-92857) (GH-94569)Miss Islington (bot)2022-07-052-2/+13
| | | | | | | Co-authored-by: Carter Dodd <carter.dodd@gmail.com> Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit c8556bcf6c0b05ac46bd74880626a2853e7c99a1)
* [3.10] bpo-46755: Don't log stack info twice in QueueHandler (GH-31355) ↵Vinay Sajip2022-07-054-4/+19
| | | | | (GH-94565) Co-authored-by: Erik Montnemery <erik@montnemery.com>
* gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)Miss Islington (bot)2022-07-052-1/+3
| | | | | (cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] Docs: remove redundant "adverb-adjective" hyphens from compound ↵Łukasz Langa2022-07-0567-110/+110
| | | | | | | | modifiers (GH-94551) (GH-94558) Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 (cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* gh-84753: Clarify change made to `inspect` functions (GH-94554) (GH-94559)Miss Islington (bot)2022-07-051-2/+6
| | | | | (cherry picked from commit a2a3f2c541290fc8f0720d1abdc12d564b856c28) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.10] Update logging documentation: change cross-reference and add webapp ↵Vinay Sajip2022-07-042-11/+275
| | | | r… (GH-94542)
* IDLE doc: Tweek RESTART and Windows console start (GH-94530)Miss Islington (bot)2022-07-032-5/+9
| | | | | (cherry picked from commit 39c29f753e6d6f390dce5a36613c1e03f43d28ea) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* gh-81054: Document that SimpleHTTPRequestHandler follows symbolic links ↵Miss Islington (bot)2022-07-012-2/+13
| | | | | | | (GH-94416) (GH-94493) (cherry picked from commit 80aaeabb8bd1e6b49598a7e23e0f8d99b3fcecaf) Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
* gh-75372: Specify major version in README for installation (GH-92759) (GH-94488)Miss Islington (bot)2022-07-011-1/+1
| | | | | (cherry picked from commit 3abda7a38a2a6803d4dbf70c6ae097ad5b59c58d) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* Update code sample when importing modules in queue doc (GH-94244) (GH-94491)Miss Islington (bot)2022-07-011-1/+2
| | | | | | | | In the queue documentation, the code snippet shows the import to be not PEP 8 compliant. Since people typically copy-paste from such code samples, I think it's important to show best-practices here. (cherry picked from commit ad55147c1d5dbfc23d2ec4554f5e82c18984158c) Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* [3.10] gh-93975: Provide nicer error reporting from subprocesses in ↵Jason R. Coombs2022-07-012-14/+32
| | | | | | | | | | | | test_venv.EnsurePipTest.test_with_pip (GH-93959) (GH-94004) This change does three things: 1. Extract a function for trapping output in subprocesses. 2. Emit both stdout and stderr when encountering an error. 3. Apply the change to `ensurepip._uninstall` check. (cherry picked from commit 6066f450b91f1cbebf33a245c14e660052ccd90a) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* multiprocessing.spawn doc: Capitalize the p in "Python" (gh-94462)Miss Islington (bot)2022-06-301-1/+1
| | | | | (cherry picked from commit 62bb7a3b50150495e215d7bd32f633eef81b3bc2) Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
* gh-84753: Make inspect.iscoroutinefunction() work with AsyncMock (GH-94050) ↵Miss Islington (bot)2022-06-305-1/+23
| | | | | | | | | | | | | | (GH-94461) The inspect version was not working with unittest.mock.AsyncMock. The fix introduces special-casing of AsyncMock in `inspect.iscoroutinefunction` equivalent to the one performed in `asyncio.iscoroutinefunction`. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 4261b6bffc0b8bb5c6d4d80578a81b7520f4aefc) Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
* xml.dom.minidom docs: fix typo (GH-93437)Miss Islington (bot)2022-06-301-1/+1
| | | | | (cherry picked from commit 639e35108bc8b2b880225862d3571277ad57648b) Co-authored-by: Jean-Christophe Helary <jean.christophe.helary@traduction-libre.org>
* gh-94332: make it safe to call assemble_free when assemble_init has not been ↵Irit Katriel2022-06-301-0/+1
| | | | | called (GH-94389) (GH-94443) (cherry picked from commit be82d26570343dafc8a89be5a1a0e2f58d51a904)
* gh-89038: [doc] update dis.findlinestarts documentation for changes related ↵Miss Islington (bot)2022-06-301-4/+6
| | | | | | | | | to PEP-626 (GH-94247) (GH-94449) (cherry picked from commit d68f2d27bbf85f3573a08fc7554889e1733a30f0) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] GH-77403: Fix tests which fail when PYTHONUSERBASE is not normalized ↵Miss Islington (bot)2022-06-302-3/+3
| | | | | | | | | | (GH-93917) (GH-93970) (cherry picked from commit b1ae4af5e82e7275cebcfb383690b816a388a785) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
* gh-92336: linecache.getline should not raise exceptions on decoding errors ↵Miss Islington (bot)2022-06-303-7/+8
| | | | | | | (GH-94410) (cherry picked from commit 21cbdae90ffdac047d27d1b83a5442fabcf89f7c) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
* [3.10] bpo-92336: [doc] clarify that the dfile is read by the traceback ↵Miss Islington (bot)2022-06-291-2/+3
| | | | | | | | | | display code (GH-94409) (GH-94429) (cherry picked from commit 68fb03249f3b17146db42b00a75718b823a2280c) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel