summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* [3.10] gh-96151: Use a private name for passing builtins to dataclass. This ↵Miss Islington (bot)2022-10-313-5/+13
| | | | | | | | | | now allows for a field named BUILTIN (gh-98143) (gh-98899) gh-96151: Use a private name for passing builtins to dataclass. This now allows for a field named BUILTIN (gh-98143) (cherry picked from commit 29f98b46b77ee528477b9a7b335974b9682f7f14) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* glossary.rst: Fix typo in package definition (GH-98865)Miss Islington (bot)2022-10-291-1/+1
| | | | | | | | | This is a tiny typo fix of package definition in glossary. According to https://devguide.python.org/documentation/help-documenting/ simple typos don’t require issues of their own, but, instead, a pull request can by submitted directly. Automerge-Triggered-By: GH:AlexWaygood (cherry picked from commit fc94d55ff453a3101e4c00a394d4e38ae2fece13) Co-authored-by: ab <abousselmi@users.noreply.github.com>
* gh-93358: Fix python-config docs for how to embed Python (GH-98649)Miss Islington (bot)2022-10-291-6/+6
| | | | | (cherry picked from commit e063c23c65143a3afae3e201459dc0d52cb6fc96) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* Fix typo in contextvars docs (GH-98823)Miss Islington (bot)2022-10-281-1/+1
| | | | | (cherry picked from commit 72fa57a8fe2e9df637170dc97f994ac70931e8e9) Co-authored-by: cburroughs <chris.burroughs@gmail.com>
* [3.10] `argparse` docs: normalize constant references (#98765) (#98808)Alex Waygood2022-10-281-4/+5
| | | | | | | `argparse` docs: normalize constant references (#98765) (cherry picked from commit b27b57c6e44a276c8a9843fd37d4cf65b2827d5c) Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
* [3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) ↵Erlend E. Aasland2022-10-284-3/+4
| | | | | | | | (#98678) (cherry picked from commit 0c84593275969d9b8f42e75abb2638b69d5b5f4a) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) (#98798)Miss Islington (bot)2022-10-282-28/+40
| | | | | (cherry picked from commit 0346eddbe933b5f1f56151bdebf5bd49392bc275) Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
* [3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)samypr1002022-10-282-1/+4
|
* [3.10] gh-98548: Fix `-ne` shell operator spelling (#98555)sterliakov2022-10-281-2/+1
|
* [3.10] bpo-2716: add license for audioop module (GH-19972) (#98532)Miss Islington (bot)2022-10-282-14/+55
| | | | | | bpo-2716: add license for audioop module (GH-19972) (cherry picked from commit 4c1145bb3796c550d477c8c154ff980d566fe4a2) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
* [3.10] Add more tkinter.Canvas tests (GH-98475) (#98477)Miss Islington (bot)2022-10-281-0/+158
| | | | | | | | | | Add more tkinter.Canvas tests (GH-98475) It is a prerequisite for GH-94473. Add tests for the coords() method and for creation of some Canvas items. (cherry picked from commit ff173ed2f6b07f38ec18f854daba6451bf1a9000) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)Miss Islington (bot)2022-10-274-18/+36
| | | | | | | | * Update libexpat from 2.4.9 to 2.5.0 to address CVE-2022-43680. Co-authored-by: Shaun Walbridge <shaun.walbridge@gmail.com> (cherry picked from commit 3e07f827b359617664ad0880f218f17ae4483299) Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
* obmalloc: Remove unused variable. (GH-98770)Miss Islington (bot)2022-10-271-3/+1
| | | | | (cherry picked from commit bded5edd9abf7ae6b2874916d70ec29ad209217c) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* gh-98703: Add tests for closing `_ProactorSocketTransport` with proactor ↵Miss Islington (bot)2022-10-271-0/+21
| | | | | | | event loop (GH-98730) (cherry picked from commit 96ae80f1d004f2df4a707919853f0745c9c352d1) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>