summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] gh-92119: ctypes: Print exception class name instead of its ↵Kamil Turek2022-11-134-6/+11
| | | | | | | representation (GH-98302) (#99452) gh-92119: ctypes: Print exception class name instead of its representation (#98302) (cherry picked from commit b9dedfe61dce2997e3e6be318d8c50b0c19c9394)
* gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__` (GH-99283)Miss Islington (bot)2022-11-133-1/+15
| | | | | (cherry picked from commit 343eb0f94b26f2a4c1c15505d417e8157ec19660) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-99392: Fix sqlite3 converter recipes (GH-99393)Miss Islington (bot)2022-11-121-3/+22
| | | | | (cherry picked from commit dfc1b17a23fed933cffa09eec125a7e8c90ea867) Co-authored-by: naglis <827324+naglis@users.noreply.github.com>
* bpo-34272: Reorganize C API tests. (GH-8551)Miss Islington (bot)2022-11-126-0/+9
| | | | | | Move some C API tests into Lib/test/test_capi/. (cherry picked from commit f883b7f8ee3209b52863fc662343c8cd81abdc59) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-80448: argparse: Fix IndexError on store_true action (GH-15656)Miss Islington (bot)2022-11-123-2/+7
| | | | | | | | (cherry picked from commit e02cc6d42aee1f0a9ee629f76576eee478224d9d) Co-authored-by: Hai Shi <shihai1992@gmail.com> Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-87604: Clarify in docs that sys.addaudithook is not for sandboxes (GH-99372)Miss Islington (bot)2022-11-111-0/+9
| | | | | (cherry picked from commit c3c3871415c86088d45abcf73ccd2c2b09dc5772) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437)Miss Islington (bot)2022-11-111-4/+4
| | | | | | | | fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py [why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue. (cherry picked from commit d26ee8a0a552de111b8245ef0de63e3f3f535d9f) Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
* GH-99183: Document behavior of count() for empty substrings (GH-99339)Miss Islington (bot)2022-11-101-0/+6
| | | | | (cherry picked from commit 2f4af2d99cffed6ba81e4b8fd886de6ae8625a3f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [3.10] gh-99130: Apply bugfixes from importlib_metadata 4.11.4. (#99132)Jason R. Coombs2022-11-104-9/+49
|
* gh-74044: inspect.signature for wrappers around decorated bound methods (GH-736)Miss Islington (bot)2022-11-103-3/+12
| | | | | (cherry picked from commit dbf2faf579b4094387d65ee41f049456ca67c446) Co-authored-by: Anton Ryzhov <anton@ryzhov.me>
* gh-99320: remove tests for old-style class from `test_complex` (GH-99321)Miss Islington (bot)2022-11-101-6/+1
| | | | | (cherry picked from commit 26726c76494d85c7b565b764c732dd4473458409) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-99238: clarify the type of the env dict. (GH-99253)Miss Islington (bot)2022-11-081-3/+7
| | | | | (cherry picked from commit 2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Fix broken link in `asyncio-subprocesses` doc (GH-99214)Miss Islington (bot)2022-11-081-1/+1
| | | | | | | | | | | | | | | | | | | GH- Fix broken link in Doc/library/asyncio-subprocess.rst This is a trivial fix in documentation to fix a broken link. There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.htmlGH-asyncio.subprocess.Process) for the function ``wait_for``: ![image](https://user-images.githubusercontent.com/37690409/200388894-fb6b7c42-b2cc-49ec-a239-e3472890db1f.png) I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs. This PR fixes the link and the result looks like the following: ![image](https://user-images.githubusercontent.com/37690409/200389483-b4a92105-7d2c-4285-b0fc-78a6dc0be39c.png) (cherry picked from commit acf4d5d5bdecbc8756276731e09bae245d88518d) Co-authored-by: Mikael Koli <koli.mikael@gmail.com> Automerge-Triggered-By: GH:AlexWaygood
* [3.11] gh-98433: Fix quadratic time idna decoding. (GH-99092) (GH-99222)Miss Islington (bot)2022-11-083-17/+27
| | | | | | | | | | | There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. (cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d) (cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15) Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-99124: use concrete exception types in `test_builtin` (GH-99125)Miss Islington (bot)2022-11-081-3/+3
| | | | | (cherry picked from commit c32bc1bffd9d63ede0d0505abab983247a3ad0c6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-98513: Test abstract methods of some `collections` types (GH-98516)Miss Islington (bot)2022-11-081-0/+5
| | | | | (cherry picked from commit a309ad9f76db4ab9a8f933ab1ffea78ecaca827f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.10] gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION ↵Miss Islington (bot)2022-11-071-0/+11
| | | | | | | | | | | | inheritance (GH-99002) (GH-99213) gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) The flag is not inherited, but its effect -- a NULL tp_new -- is. Drop hints for people who come here wanting to “disallow instantiation”. (cherry picked from commit 1438b779971605e516bd0a4051a704d6ffbbd58d) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* doc: Formatting and typo fixes (GH-98974)Miss Islington (bot)2022-11-073-10/+10
| | | | | (cherry picked from commit 728e42fcf51cbb2108caf1382df224c13b53d024) Co-authored-by: jmcb <joelsgp@protonmail.com>
* bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937)Miss Islington (bot)2022-11-073-8/+18
| | | | | (cherry picked from commit 5ff81da6d3a8eb01fc5500fd1c9eaa6543286301) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [3.10] [ GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols ↵Miss Islington (bot)2022-11-073-3/+15
| | | | (GH-99156). (GH-99188) (GH-99190)
* gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162)Miss Islington (bot)2022-11-072-4/+18
| | | | | (cherry picked from commit f626b7b504df454d289527a4f922b09deeae9e21) Co-authored-by: Dong-hee Na <donghee.na@python.org>
* [3.10] gh-99086: Fix implicit int compiler warning in configure check for ↵Erlend E. Aasland2022-11-063-2/+3
| | | | | | | | | PTHREAD_SCOPE_SYSTEM (GH-99085) (#99119) (cherry picked from commit 12078e78f6e4a21f344e4eaff529e1ff3b97734f) Co-authored-by: Sam James <sam@cmpct.info> Co-authored-by: Sam James <sam@cmpct.info>
* gh-94286 Fix documentation of print default param (GH-94297)Miss Islington (bot)2022-11-061-1/+1
| | | | | (cherry picked from commit 2db55e0c0069a928775fa819973a76f840c5ab5a) Co-authored-by: Nouran Ali <nouranalimohammed@gmail.com>
* gh-99051: remove duplicated test from `test_weakref` (GH-99052)Miss Islington (bot)2022-11-061-35/+6
| | | | | (cherry picked from commit 8463cb55dabb78571e32d8c8c7de8679ab421c2c) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-83004: Clean up refleak in _pickle initialisation (GH-98841)Miss Islington (bot)2022-11-062-7/+7
| | | | | (cherry picked from commit d3b82b4463c4eb51954c0afd98342f0c5e479baa) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-83004: Clean up refleak in _zoneinfo initialisation (GH-98842)Miss Islington (bot)2022-11-062-2/+4
| | | | | (cherry picked from commit 31f2f6568d89564cc1d686cd6b75ba5578aaa748) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* `test_typing`: use all pickle protocols (GH-99154)Miss Islington (bot)2022-11-061-1/+1
| | | | | (cherry picked from commit a0bc75e2fdd53680cb147881bcb3754bd56aa2fa) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-99134: Update bundled pip to 22.3.1 (gh-99135)Miss Islington (bot)2022-11-053-1/+2
| | | | | | Update bundled pip to 22.3.1 (cherry picked from commit 47ab8480e71ab3949a336a94c7fd146b1fce595d) Co-authored-by: Paul Moore <p.f.moore@gmail.com>
* [3.11] gh-90867: test.support.wait_process() uses LONG_TIMEOUT (GH-99071) ↵Miss Islington (bot)2022-11-041-3/+3
| | | | | | | | | | | | | | (GH-99098) The test.support.wait_process() function now uses a timeout of LONG_TIMEOUT seconds by default, instead of SHORT_TIMEOUT. It doesn't matter if a Python buildbot is slower, it only matters that the process completes. The timeout should just be shorter than "forever". (cherry picked from commit a9a8c8712665377cfa83af4b632b0db529ec1853) Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit f09da28768b77713566e932e912f107b6b57e8fd)
* minor edits to locale doc (GH-98537)Miss Islington (bot)2022-11-041-13/+16
| | | | | (cherry picked from commit c0bf7607a1c215cd92f2976c9e915b913fc149d1) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* Docs: add `named` to the list of styles in the sqlite3.paramstyle attr docs ↵Miss Islington (bot)2022-11-031-3/+4
| | | | | | | (GH-99078) (cherry picked from commit 016c7d37b6acfe2203542a2655080c6402b3be1f) Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* gh-83004: Clean up refleak in _io initialisation (GH-98840)Miss Islington (bot)2022-11-032-3/+4
| | | | | (cherry picked from commit 1208037246eeab4c5c003f1651edfefb045e6fb7) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* [3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) ↵Serhiy Storchaka2022-11-034-26/+39
| | | | | | | | | | | | | | | | (GH-99046) In very rare circumstances the JUMP opcode could be confused with the argument of the opcode in the "then" part which doesn't end with the JUMP opcode. This led to incorrect detection of the final JUMP opcode and incorrect calculation of the size of the subexpression. NOTE: Changed return value of functions _validate_inner() and _validate_charset() in Modules/_sre/sre.c. Now they return 0 on success, -1 on failure, and 1 if the last op is JUMP (which usually is a failure). Previously they returned 1 on success and 0 on failure. (cherry picked from commit e9ac890c0273aee413aa528cc202c3efa29f1d7a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-98512: Add more tests for `ValuesView` (GH-98515)Miss Islington (bot)2022-11-032-0/+6
| | | | | (cherry picked from commit 29e027c3e6535aa1c0eacc2fb2002c53405e1f6f) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-65002: Make note that null bytes are used to pad bytes (GH-98635)Miss Islington (bot)2022-11-031-1/+4
| | | | | (cherry picked from commit 8cd21c2c5d34a5c5e857782da58d773f29ff8821) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* Docs: Add 'as, match statement' to the index (GH-99001)Miss Islington (bot)2022-11-031-0/+1
| | | | | (cherry picked from commit 26720fffd090929fd2058b73e5970cc520b30aef) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* argparse howto: Use f-string in preference to "...".format() (GH-98883)Miss Islington (bot)2022-11-031-2/+2
| | | | | (cherry picked from commit 1fd20d0b57478d8b0d8d58718fa773135348bf98) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.10] gh-96265: Formatting changes for faq/programming (GH-98242) (#98994)Stanley2022-11-031-37/+46
| | | | | | | | | | | | | | | | | | | | * Formatting changes for faq/programming * Add missing method formatting, use non-literal formatting * Fix sphinx warnings * Some extra formatting missed earlier * More formatting suggestions from review Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> * Add missing colon, avoid referening external module Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>. (cherry picked from commit 0689b99bb8c4f6058af43a52effaa8a25609dbed) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
* gh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)Miss Islington (bot)2022-11-021-0/+21
| | | | | (cherry picked from commit c053284e3930027847d5adf99efcb1aa5ccbacd1) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] gh-97731: Specify the full path to the docs for `make docclean` ↵Miss Islington (bot)2022-11-022-1/+3
| | | | | | | (GH-98982) (#99025) Specify the full path to the docs for `make docclean` This is to have `make clean` not error out on cross-builds. (cherry picked from commit 22bab74c8f5fa6d53ddb7e40baa4334d09331c0f)
* gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)Miss Islington (bot)2022-11-022-2/+8
| | | | | | | | | | | | The uuid.getnode() function has multiple implementations, tested sequentially. The ifconfig implementation was incorrect and always failed: fix it. In practice, functions of libuuid library are preferred, if available: uuid_generate_time_safe(), uuid_create() or uuid_generate_time(). (cherry picked from commit e3ec272f57c3948834a6159cf2604978d3db67a0) Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com> Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
* [3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958) ↵Jelle Zijlstra2022-11-021-2/+2
| | | | | | | | | | (#98986) [3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958). (cherry picked from commit 65d1407737befc3e9430eda8ae14ab1c7f9d8c7a) Co-authored-by: Sebastian Rittau <srittau@rittau.biz> Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
* gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)Miss Islington (bot)2022-11-021-3/+8
| | | | | (cherry picked from commit 898d0d9ad8328326ba5f7df9952e9dc287766ca3) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
* [3.10] [doc] Update cookbook example for socket-based logging in a ↵Miss Islington (bot)2022-11-011-7/+65
| | | | | | production sett… (GH-98922) (GH-98981) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)Miss Islington (bot)2022-11-013-2/+4
| | | | | (cherry picked from commit c0859743d9ad3bbd4c021200f4162cfeadc0c17a) Co-authored-by: Zachary Ware <zach@python.org>
* [3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) ↵Serhiy Storchaka2022-11-014-0/+71
| | | | | | | (GH-98969) Fix subscription of types.GenericAlias instances containing bare generic types: for example tuple[A, T][int], where A is a generic type, and T is a type variable.
* Doc: use "unnumbered" footnotes (GH-98954)Miss Islington (bot)2022-11-011-2/+2
| | | | | | | | Use unnumbered footnote in this file to avoid reseting the footnotes numbering. Example: when building the tutorial into a PDF and using `latex_show_urls = "footnotes"`; this footnote become the number 8. However, without this change, the footnote shows the number 1. (cherry picked from commit f042646595d1cdd2ecdc15222b1766f746d010f0) Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
* GH-98897: fix memory leak if `math.dist` raises exception (GH-98898)Miss Islington (bot)2022-11-013-3/+9
| | | | | (cherry picked from commit ab575050709e2b313ca9a9585f09b6f4b0560318) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] gh-98793: Fix typecheck in `overlapped.c` (GH-98835) (#98890)Charlie Zhao2022-10-314-9/+21
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> (cherry picked from commit 3ac8c0ab6ee819a14b1c8e0992acbaf376a46058)
* gh-98576: Fix types in dataclass.InitVar example (gh-98577)Miss Islington (bot)2022-10-311-2/+2
| | | | | (cherry picked from commit 880bafc574bcd811dd7244f9a82056430b489996) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>