Miss Islington (bot)
3a7e9ea090
Docs: add named to the list of styles in the sqlite3.paramstyle attr docs (GH-99078)
...
(cherry picked from commit 016c7d37b6 )
Co-authored-by: Nick Pope <nick@nickpope.me.uk>
2022-11-03 16:31:33 -07:00
Miss Islington (bot)
8d44f36a4a
gh-83004: Clean up refleak in _io initialisation (GH-98840)
...
(cherry picked from commit 1208037246 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-11-03 07:58:44 -07:00
Serhiy Storchaka
22bbb0c4c7
[3.10] gh-98740: Fix validation of conditional expressions in RE (GH-98764) (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 e9ac890c02 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-11-03 12:18:50 +02:00
Miss Islington (bot)
27dc6dbafe
gh-98512: Add more tests for ValuesView (GH-98515)
...
(cherry picked from commit 29e027c3e6 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-11-02 19:33:01 -07:00
Miss Islington (bot)
b9e621b9f4
gh-65002: Make note that null bytes are used to pad bytes (GH-98635)
...
(cherry picked from commit 8cd21c2c5d )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-11-02 19:24:15 -07:00
Miss Islington (bot)
8c0cf111a0
Docs: Add 'as, match statement' to the index (GH-99001)
...
(cherry picked from commit 26720fffd0 )
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2022-11-02 19:23:22 -07:00
Miss Islington (bot)
f9b37d4d26
argparse howto: Use f-string in preference to "...".format() (GH-98883)
...
(cherry picked from commit 1fd20d0b57 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-11-02 19:16:33 -07:00
Stanley
c592b33977
[3.10] gh-96265: Formatting changes for faq/programming (GH-98242) ( #98994 )
...
* 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 0689b99bb8 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-11-03 01:30:12 +01:00
Miss Islington (bot)
6cf30c6cc4
gh-96997: Clarify the contract of PyMem_SetAllocator() (GH-98977)
...
(cherry picked from commit c053284e39 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-11-02 14:56:14 -07:00
Miss Islington (bot)
0774f83eed
[3.10] gh-97731: Specify the full path to the docs for make docclean (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 22bab74c8f )
2022-11-02 14:05:00 -07:00
Miss Islington (bot)
c23862fc6c
gh-98415: Fix uuid.getnode() ifconfig implementation (GH-98423)
...
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 e3ec272f57 )
Co-authored-by: Chaim Sanders <csanders-git@users.noreply.github.com>
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2022-11-02 12:22:19 -07:00
Jelle Zijlstra
e07086db03
[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958) ( #98986 )
...
[3.10] gh-92871: Postpone the removal of typing.{io,re} to 3.13 (GH-98958).
(cherry picked from commit 65d1407737 )
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-11-02 09:12:37 +00:00
Miss Islington (bot)
5f0d266af9
gh-92679: Clarify asyncio.loop.start_tls parameters (GH-92682)
...
(cherry picked from commit 898d0d9ad8 )
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
2022-11-01 22:05:28 -07:00
Miss Islington (bot)
8a7695e2b7
[3.10] [doc] Update cookbook example for socket-based logging in a 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>
2022-11-01 23:34:48 +00:00
Miss Islington (bot)
a2d4537202
gh-98689: Update Windows builds to zlib v1.2.13 (GH-98968)
...
(cherry picked from commit c0859743d9 )
Co-authored-by: Zachary Ware <zach@python.org>
2022-11-01 11:30:40 -07:00
Serhiy Storchaka
9ca7b1561f
[3.10] gh-98852: Fix subscription of types.GenericAlias instances (GH-98920) (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.
2022-11-01 20:14:38 +02:00
Miss Islington (bot)
8648c06b9b
Doc: use "unnumbered" footnotes (GH-98954)
...
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 f042646595 )
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
2022-11-01 06:35:26 -07:00
Miss Islington (bot)
078ce6891c
GH-98897: fix memory leak if math.dist raises exception (GH-98898)
...
(cherry picked from commit ab57505070 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-31 19:47:29 -07:00
Charlie Zhao
d3d1738acd
[3.10] gh-98793: Fix typecheck in overlapped.c (GH-98835) ( #98890 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 3ac8c0ab6e )
2022-10-31 11:22:02 -07:00
Miss Islington (bot)
1907e5a7cc
gh-98576: Fix types in dataclass.InitVar example (gh-98577)
...
(cherry picked from commit 880bafc574 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-31 08:08:54 -07:00
Miss Islington (bot)
789d1322f6
[3.10] gh-96151: Use a private name for passing builtins to dataclass. This 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 29f98b46b7 )
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-10-31 10:59:18 -04:00
Miss Islington (bot)
23545fb277
glossary.rst: Fix typo in package definition (GH-98865)
...
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 fc94d55ff4 )
Co-authored-by: ab <abousselmi@users.noreply.github.com>
2022-10-29 15:52:05 -07:00
Miss Islington (bot)
c76e70a409
gh-93358: Fix python-config docs for how to embed Python (GH-98649)
...
(cherry picked from commit e063c23c65 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-29 11:53:54 -07:00
Miss Islington (bot)
85f88f63d9
Fix typo in contextvars docs (GH-98823)
...
(cherry picked from commit 72fa57a8fe )
Co-authored-by: cburroughs <chris.burroughs@gmail.com>
2022-10-28 14:19:43 -07:00
Alex Waygood
4320115613
[3.10] argparse docs: normalize constant references ( #98765 ) ( #98808 )
...
`argparse` docs: normalize constant references (#98765 )
(cherry picked from commit b27b57c6e4 )
Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
2022-10-28 18:17:03 +01:00
Erlend E. Aasland
a3b06fd1a2
[3.10] gh-94328: Update Windows installer to use SQLite 3.39.4 (GH-98640) ( #98678 )
...
(cherry picked from commit 0c84593275 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-10-28 14:16:38 +02:00
Miss Islington (bot)
3f0f74387b
[3.10] gh-98624 Add mutex to unittest.mock.NonCallableMock (GH-98688) ( #98798 )
...
(cherry picked from commit 0346eddbe9 )
Co-authored-by: noah-weingarden <33741795+noah-weingarden@users.noreply.github.com>
2022-10-28 12:16:53 +02:00
samypr100
af204e4c47
[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) ( #98677 )
2022-10-28 12:13:44 +02:00
sterliakov
db1c3d6316
[3.10] gh-98548: Fix -ne shell operator spelling ( #98555 )
2022-10-28 12:12:42 +02:00
Miss Islington (bot)
586bb1fd8b
[3.10] bpo-2716: add license for audioop module (GH-19972) ( #98532 )
...
bpo-2716: add license for audioop module (GH-19972)
(cherry picked from commit 4c1145bb37 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2022-10-28 12:11:26 +02:00
Miss Islington (bot)
97106d3136
[3.10] Add more tkinter.Canvas tests (GH-98475) ( #98477 )
...
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 ff173ed2f6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-10-28 12:10:41 +02:00
Miss Islington (bot)
e77af82110
gh-98739: Update libexpat from 2.4.9 to 2.5.0 (GH-98742)
...
* 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 3e07f827b3 )
Co-authored-by: Shaun Walbridge <46331011+scdub@users.noreply.github.com>
2022-10-27 14:22:18 -07:00
Miss Islington (bot)
6a1d165c4c
obmalloc: Remove unused variable. (GH-98770)
...
(cherry picked from commit bded5edd9a )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2022-10-27 09:33:44 -07:00
Miss Islington (bot)
9338e9a5f4
gh-98703: Add tests for closing _ProactorSocketTransport with proactor event loop (GH-98730)
...
(cherry picked from commit 96ae80f1d0 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-26 20:35:07 -07:00
Miss Islington (bot)
bb80f6ad92
gh-98703: Fix asyncio proactor_events calling _call_connection_lost multiple times (GH-98704)
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit 8a755423eb )
Co-authored-by: Ken Jin <kenjin@python.org>
2022-10-26 20:03:58 -07:00
Miss Islington (bot)
5074c35c2a
Fix readline.c compiler warning. (GH-98738)
...
```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
completer_word_break_characters =
^
```
(cherry picked from commit 29b391b137 )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
2022-10-26 16:28:40 -07:00
Stanley
f786485f13
[3.10] Change links to label refs (GH-98454) ( #98726 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-10-26 13:19:39 -07:00
Erlend E. Aasland
4b41b11a63
[3.10] gh-98716: Revert gh-96081: Escape lone stars in sqlite3 docs (GH-98720) ( #98737 )
...
(cherry picked from commit 365852a03a )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-26 22:19:20 +02:00
Miss Islington (bot)
fd9bdde769
gh-94808: cover PyMapping_HasKeyString and PyMapping_HasKey (GH-98486)
...
(cherry picked from commit 5d30544485 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 21:53:36 -07:00
Miss Islington (bot)
5e08585317
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
...
(cherry picked from commit 216f45e4fe )
Co-authored-by: fancidev <fancidev@gmail.com>
2022-10-25 20:55:29 -07:00
Miss Islington (bot)
0f93725063
gh-77753: Add example for values that compare equal in stdtypes (GH-98497)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 0ca6a4d640 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 20:01:11 -07:00
Miss Islington (bot)
866dc74afa
gh-84747: Add async for comment for StreamReader (GH-98633)
...
(cherry picked from commit 4196ee5c8b )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-25 19:23:08 -07:00
Miss Islington (bot)
cb323a8612
gh-94808: Improve coverage of unicode_find and unicode_rfind (GH-98648)
...
(cherry picked from commit b1783bc124 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 17:02:48 -07:00
Miss Islington (bot)
3e335f2c0d
gh-98623: Fix base classes in typing.rst (GH-98626)
...
(cherry picked from commit 5076108872 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 07:15:07 -07:00
Miss Islington (bot)
750e504800
Use more precise exception types in assertRaises in typing tests (GH-98650)
...
(cherry picked from commit 45c89358b7 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-25 07:12:59 -07:00
Miss Islington (bot)
a86a7b827b
gh-93696: Locate frozen module source with __file__ (GH-93697)
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
(cherry picked from commit d91de288e7 )
Co-authored-by: James Gerity <snoopjedi@gmail.com>
2022-10-25 06:48:41 -07:00
Erlend E. Aasland
9387b7c1b3
[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639) ( #98647 )
...
[3.10] gh-94328: Update macOS installer to use SQLite 3.39.4. (GH-98639).
(cherry picked from commit 8aa1e994a5 )
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2022-10-25 14:23:38 +02:00
Dong-hee Na
25eae0b6c2
[3.10] gh-98456: Replace deprecated set-output with up-to-date vers… (gh-98564)
...
[3.10] gh-98456: Replace deprecated `set-output` with up-to-date version (gh-98457).
(cherry picked from commit 1db2a0cb20 )
Co-authored-by: Noam Cohen <noam@noam.me>
Co-authored-by: Noam Cohen <noam@noam.me>
2022-10-25 12:02:47 +09:00
Miss Islington (bot)
8ba086f70b
GH-89237: fix hang in proactor subprocess.wait_closed() (GH-98572)
...
(cherry picked from commit ad1dc3ebb6 )
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-10-24 13:42:20 -07:00
Miss Islington (bot)
d79a42aac8
gh-98507: [typing docs] Rephrase "now supports []" to "now supports subscripting" (GH-98508)
...
(cherry picked from commit e3b9dd8e87 )
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2022-10-24 11:17:33 -07:00