summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.5v3.9.5Łukasz Langa2021-05-0349-196/+587
|
* bpo-42800: Add audit events for f_code and tb_frame (GH-24182)Steve Dower2021-05-038-9/+22
| | | | | | | | 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
* [3.9] Update macOS installer readme for 3.9.5 (GH-25836)Ned Deily2021-05-031-8/+46
|
* bpo-41129: Fix check for macOS SDK paths when building Python (GH-25785) ↵Miss Islington (bot)2021-05-032-3/+10
| | | | | | | | | | | | | | | (GH-25830) Narrow search to match contents of SDKs, namely only files in ``/System/Library``, ``/System/IOSSupport``, and ``/usr`` other than ``/usr/local``. Previously, anything under ``/System`` was assumed to be in an SDK which causes problems with the new file system layout in 10.15+ where user file systems may appear to be mounted under ``/System``. Paths in ``/Library`` were also incorrectly treated as SDK locations. Co-authored-by: Ned Deily <nad@python.org> (cherry picked from commit d52bbde9421987d216c600557ef5bc931d03efcc) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ ↵Erlend Egeberg Aasland2021-05-023-9/+9
| | | | (GH-25818)
* bpo-43990: Fix the footnote ordering in the operator precedence docs ↵Miss Islington (bot)2021-05-021-3/+3
| | | | (GH-25805) (GH-25819)
* bpo-36384: Leading zeros in IPv4 addresses are no longer tolerated ↵Miss Islington (bot)2021-05-026-8/+59
| | | | | | | | | | | | (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)
* bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type ↵Miss Islington (bot)2021-05-023-1/+13
| | | | | | | | | | (GH-8721) (#25812) Embedded nulls would cause a ValueError to be raised. Thanks go to Eryk Sun for their analysis. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 73766b0341674f3920f4ea86a6f8288b801960f9) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-41100: Update Misc/ACKS (GH-25808) (GH-25809)Miss Islington (bot)2021-05-021-0/+4
| | | | | | (cherry picked from commit 518f8b5dd50b73499282a1ef02b197af106ad118) Co-authored-by: Ned Deily <nad@python.org>
* [3.9] bpo-44009: Provide "python3.x-intel64" for Apple Silicon Macs ↵Miss Islington (bot)2021-05-026-9/+62
| | | | | | | | | | | | | | (GH-25804) (GH-25807) This allows reliably forcing macOS universal2 framework builds to run under Rosetta 2 Intel-64 emulation on Apple Silicon Macs if needed for testing or when universal2 wheels are not yet available. (cherry picked from commit 0cb33da1cc9cebb9b2d67d446feb1cfd36fe7f55) Co-authored-by: Ned Deily <nad@python.org> Automerge-Triggered-By: GH:ned-deily
* Fix broken name in build.yml (GH-25759) (GH-25802)Miss Islington (bot)2021-05-021-1/+1
| | | (cherry picked from commit 29282b2825545e2823bde94290a80f7c0fd7068e)
* 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>
* [3.9] bpo-43993: Update vendored pip to 21.1.1 (GH-25761). (GH-25782)Stéphane Bidoul2021-05-013-1/+2
|
* 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-43935: Fix typo in Turtle.back() docstring (GH-25581)Miss Islington (bot)2021-04-301-1/+1
| | | | | | 'e ,' to 'e, '. (cherry picked from commit 0048c60f01deec4435748e851f9ec21b504d2d2f) Co-authored-by: Tarjei Bærland <tarjeibaerland@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-292-3/+3
| | | | | | | | 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-294-0/+54
| | | | | | | | | | 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>
* [doc] Do some polishing in IDEs section (GH-22070) (GH-25703)Miss Islington (bot)2021-04-291-12/+12
| | | | | | | (cherry picked from commit 08a4803863856db47a1dde830e56f83e5c6811a2) 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-283-3/+6
| | | | | | | | | 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-43961: Fix test_logging.test_namer_rotator_inheritance() (GH-25684) ↵Miss Islington (bot)2021-04-282-1/+3
| | | | | | | | | | | (GH-25688) Fix test_logging.test_namer_rotator_inheritance() on Windows: use os.replace() rather than os.rename(). (cherry picked from commit fe52eb62191e640e720d184a9a1a04e965b8a062) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-43960: test_pdb resets breakpoints to make tests deterministic (GH-25691)Irit Katriel2021-04-281-7/+11
|
* bpo-43959: clarify the documentation of the PyContextVar C-API (GH-25671) ↵Miss Islington (bot)2021-04-282-7/+7
| | | | | (GH-25689) (cherry picked from commit 4c49be766897968e509c41397e0e624c25b1675d)
* 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>
* [3.9] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641)Erlend Egeberg Aasland2021-04-274-3/+4
| | | | | (cherry picked from commit bf0c7c0147b73738cac63eb27ef48430284ff121) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* Fix generated file name for installer builds on macOS 11+. (GH-25661) (GH-25664)Miss Islington (bot)2021-04-271-6/+28
| | | | | | (cherry picked from commit 8a37463989410a79f6d1131d08dc0165bcaa0f9d) Co-authored-by: Ned Deily <nad@python.org>
* [3.9] bpo-43492: Update macOS installer to use SQLite 3.35.5 (GH-25640) ↵Miss Islington (bot)2021-04-272-3/+4
| | | | | | | | | | (GH-25662) (cherry picked from commit ce827816442613f982c356aa2f434c3c8a0c8917) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Automerge-Triggered-By: GH:ned-deily
* bpo-37751: Document codecs.lookup() change in What's New in Python 3.9 ↵Miss Islington (bot)2021-04-271-0/+6
| | | | | | | | | (GH-23096) (GH-25659) (cherry picked from commit 32980fb669a6857276da18895fcc0cb6f6fbb544) Co-authored-by: Hai Shi <shihai1992@gmail.com> Co-authored-by: Hai Shi <shihai1992@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-266-12/+12
| | | | | | | (GH-22314) (GH-25638) (cherry picked from commit 52cd6d5e1b2bece0d8efb58b1af41071c914ebe6) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-40432: Use python 3.8 or higher to compile CPython on Windows (GH-25389) ↵Miss Islington (bot)2021-04-262-2/+5
| | | | | | | (#25637) (cherry picked from commit 425434dadc30d96dc1c0c628f954f9b6f5edd2c9) Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
* Fix thread locks in zlib module may go wrong in rare case (#22130)Ma Lin2021-04-262-4/+5
| | | Setting `next_in` before acquiring the thread lock may mix up compress/decompress state in other threads.
* bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24211)Miss Islington (bot)2021-04-263-2/+15
| | | | | | | Before, using the * operator to repeat a bytearray would copy data from the start of the internal buffer (ob_bytes) and not from the start of the actual data (ob_start). (cherry picked from commit 61d8c54f43a7871d016f98b38f86858817d927d5) Co-authored-by: Tobias Holl <TobiasHoll@users.noreply.github.com>
* bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) ↵Miss Islington (bot)2021-04-263-1/+4
| | | | | | | | | (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>
* [3.9] bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624) ↵Miss Islington (bot)2021-04-261-10/+14
| | | | | | | | | | | (GH-25626) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 3c586ca500854476e6eff06713236faff233d035) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* 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>
* Quick pydoc update to smtplib.py (GH-22292) (GH-25615)Miss Islington (bot)2021-04-261-2/+2
| | | | | | Fixing minor mistake in the quotes around a couple of arguments for the constructor of the class `SMTP`, in smtplib.py. (cherry picked from commit b3dec6f9ede35fc3bf7ae1baf0aa5f2ce1b6bf9d) Co-authored-by: uy-rrodriguez <5296200+uy-rrodriguez@users.noreply.github.com>
* bpo-43534: Fix the turtle module working with multiple root windows GH-25593Miss Islington (bot)2021-04-262-8/+8
| | | | | | | (cherry picked from commit 8af929fc76f21fb123f6a47cb3ebcf4e5b758dea) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Fix broken links and improve stand-alone tools list in FAQ GH-25609Miss Islington (bot)2021-04-263-10/+9
| | | | | (cherry picked from commit d28b34695301ec99a9334ad8d69b6092f4f703d5) Co-authored-by: Andre Delfino <adelfino@gmail.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>
* Fix a typo in datamodel reference document (GH-24930)Miss Islington (bot)2021-04-251-1/+1
| | | | | (cherry picked from commit a1a5e3c4c83c3e3fe24c96ae22dfdedc7e23a1bb) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
* [3.9] fix typo in warning (GH-20620) (#25601)Senthil Kumaran2021-04-251-1/+1
| | | | | | | | | | | | * Add space after period to warning in _tzpath.py Currently: InvalidTZPathWarning: Invalid paths specified in PYTHONTZPATH environment variable.Paths should be absolute but found the following relative paths: ... * Update _tzpath.py (cherry picked from commit a31cf86bc2d9c0738b2a0251af766d6b247683fc) Co-authored-by: Allen <64019758+aboddie@users.noreply.github.com>