Łukasz Langa
f8473f6f76
[3.10] bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-28452) (GH-28930)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b9e687618d
)
Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
2021-10-13 19:12:22 +02:00
Miss Islington (bot)
151234f5da
bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28927)
...
(cherry picked from commit f59ed3c310
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-13 18:59:04 +02:00
Miss Islington (bot)
5abb2dec2c
[docs] lexical_analysis: Expand the text on `_
` (GH-28903) (GH-28933)
...
Also:
* Expand the discussion into its own entry. (Even before this,
text on ``_`` was longet than the text on ``_*``.)
* Briefly note the other common convention for `_`: naming unused
variables.
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 3dee0cb621
)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2021-10-13 18:58:06 +02:00
Miss Islington (bot)
7e74d99c53
bpo-45453: Fix test_embed.StdPrinterTests (GH-28916) (GH-28917)
...
test_embed.StdPrinterTests now always use the file descriptor 1 for
stdout, rather than using sys.__stdout__.fileno().
PyFile_NewStdPrinter() does crash if the argument is not 1 or 2.
Fix also a few pyflakes warnings: remove unused import and variables.
(cherry picked from commit 678433f25e
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-10-13 12:24:47 +02:00
Miss Islington (bot)
47673c47db
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
...
To avoid error, add either space or parentheses.
(cherry picked from commit 380c440875
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-10-12 22:37:51 -07:00
Miss Islington (bot)
edae3e2ac7
[3.10] bpo-45405: Prevent `internal configure error
when running
configure
` with recent versions of non-Apple clang. (GH-28845) (GH-28911)
...
Change the configure logic to function properly on macOS when the compiler
outputs a platform triplet for option --print-multiarch.
Co-authored-by: Ned Deily <nad@python.org>
(cherry picked from commit 9c4766772c
)
Co-authored-by: David Bohman <debohman@gmail.com>
Automerge-Triggered-By: GH:ned-deily
2021-10-12 17:31:32 -07:00
Miss Islington (bot)
854db7e821
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
...
(cherry picked from commit f79f3b41c8
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-12 10:10:59 -07:00
Miss Islington (bot)
035ad8cf98
Slight correct grammar (GH-28860)
...
(cherry picked from commit 1b11582f0e
)
Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
2021-10-12 10:01:11 -07:00
Miss Islington (bot)
32866dd471
bpo-45441: Update some moved URLs in documentation (GH-28861)
...
(cherry picked from commit b37dc9b3bc
)
Co-authored-by: 180909 <wjh180909@gmail.com>
2021-10-12 07:20:43 -07:00
Miss Islington (bot)
47a50fe16f
bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28872)
...
(cherry picked from commit 15188b115a
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-12 10:19:09 +03:00
Miss Islington (bot)
3d7009e88e
bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28874)
...
Document that the "standalone" parameter was added in Python 3.9.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit c7e81fcf95
)
Co-authored-by: Jens Diemer <github.com@jensdiemer.de>
2021-10-12 10:17:53 +03:00
Miss Islington (bot)
bb4f885892
bpo-45351, asyncio: Enhance echo server example, print all addresses (GH-28828)
...
(cherry picked from commit 659812b451
)
Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
2021-10-11 12:34:47 -07:00
Miss Islington (bot)
56825b697e
Handle error when PyUnicode_GetLength returns a negative value. (GH-28859)
...
(cherry picked from commit 560a79f94e
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-10-11 04:40:43 -07:00
Miss Islington (bot)
5aca34f17c
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822) ( #28867 )
...
…iles.
Also changed some historical return values from 1 -> True and 0 -> False.
(cherry picked from commit 62a667784b
)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2021-10-11 12:01:12 +02:00
Miss Islington (bot)
3a58d60620
Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PySys_Audit() (GH-28862)
...
(cherry picked from commit 9883ca498d
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-11 02:22:29 -07:00
Miss Islington (bot)
aff69c34b0
Fix the "Finding all Adverbs" example (GH-21420) ( #28839 )
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit dbd62e74da
)
Co-authored-by: Rim Chatti <chattiriim@gmail.com>
2021-10-10 14:43:38 -07:00
Miss Islington (bot)
164dddf5f8
bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 1a7892414e
)
Co-authored-by: Joongi Kim <joongi@lablup.com>
2021-10-10 09:25:14 -07:00
Miss Islington (bot)
3c27013077
Fix class pattern docs to refer to class patterns (GH-28849)
...
(cherry picked from commit 0bcc5ade9b
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
2021-10-10 07:35:23 -07:00
Jason R. Coombs
14a483aa40
[3.10] bpo-45419: Fix interfaces on DegenerateFiles.Path (GH-28844)
2021-10-10 07:23:06 -07:00
Miss Islington (bot)
459a4db5ea
bpo-45353: Remind sys.modules users to copy when iterating. (GH-28842)
...
This is true of all dictionaries in Python, but this one tends to
catch people off guard as they don't realize when sys.modules might
change out from underneath them as a hidden side effect of their
code. Copying it first avoids the RuntimeError. An example when
this happens in single threaded code are codecs being loaded which
are an implicit time of use import that most need not think about.
(cherry picked from commit 3d1ca867ed
)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2021-10-09 12:54:20 -07:00
Miss Islington (bot)
e086bfee03
Fix dataclassses spelling (GH-28837) (GH-28841)
...
(cherry picked from commit 5b4a7675bc
)
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
2021-10-09 15:50:45 -04:00
Dong-hee Na
c80f0b7aa1
[3.10] bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832) (GH-28834)
2021-10-10 01:13:21 +09:00
Miss Islington (bot)
8772935765
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
...
(cherry picked from commit 34bbc87b2d
)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2021-10-09 08:35:33 -07:00
Miss Islington (bot)
6846d6712a
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796) (GH-28816)
...
Prevent use-after-free of running loop holder via cache.
(cherry picked from commit 392a898353
)
Co-authored-by: Matthias Reichl <github@hias.horus.com>
2021-10-08 10:55:41 +02:00
Pablo Galindo Salgado
4ce55a2353
[3.10] bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812). (GH-28813)
...
(cherry picked from commit 0219017df7
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-10-08 00:50:10 +01:00
Miss Islington (bot)
eabca6e593
bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663)
...
(cherry picked from commit 6811fdaec8
)
Co-authored-by: Steve Dower <steve.dower@python.org>
2021-10-07 15:55:05 -07:00
Miss Islington (bot)
86bf45e69e
[3.10] Remove draft notice on the 3.10 What's new document (GH-28806) (GH-28807)
...
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 32485cecab
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-10-07 11:25:26 -07:00
Christian Clauss
cfca4a6774
[3.10] Fix typos in the Lib directory (GH-28775) (GH-28804)
...
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>.
(cherry picked from commit 745c9d9dfc
)
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-10-07 11:49:47 -04:00
Christian Clauss
03bf55d8cf
[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)
...
Like GH-28744 but for the Tools directory.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeb
)
Co-authored-by: Christian Clauss <cclauss@me.com>
2021-10-07 17:34:55 +02:00
Christian Clauss
ccd82a0800
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
...
(cherry picked from commit db693df3e1
)
2021-10-07 17:30:08 +02:00
Christian Clauss
212140dceb
[3.10] [Misc] [Mac] Fix typos found using codespell (GH-28756) (GH-28794)
...
(cherry picked from commit 470145f572
)
2021-10-07 17:09:30 +02:00
Christian Clauss
dcfbe4f72d
[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)
...
(cherry picked from commit 5f401f1040
)
Automerge-Triggered-By: GH:JulienPalard
2021-10-07 07:31:33 -07:00
Christian Clauss
f6798391b5
[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)
...
(cherry picked from commit 8e8f752217
)
2021-10-07 06:00:23 -07:00
Miss Islington (bot)
d55bf81c4e
bpo-45400: Fix suggestion test of test_exceptions (GH-28783)
...
Fix test_name_error_suggestions_do_not_trigger_for_too_many_locals()
of test_exceptions if a directory name contains "a1" (like
"Python-3.11.0a1"): use a stricter regular expression.
(cherry picked from commit 4e605666b0
)
Co-authored-by: Victor Stinner <vstinner@python.org>
2021-10-07 05:11:38 -07:00
Miss Islington (bot)
ee92205bb2
[3.10] Fix typo in whatsnew 3.10.rst (GH-26854) (GH-28782)
...
Thanks for the fix @wiggin15 .
(cherry picked from commit 599c07006a
)
Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Automerge-Triggered-By: GH:JulienPalard
2021-10-07 02:26:12 -07:00
Miss Islington (bot)
5afc5bb45d
[3.10] Fix typos in the Modules directory (GH-28761) (GH-28781)
...
(cherry picked from commit dd02a696e5
)
Co-authored-by: Christian Clauss <cclauss@me.com>
Automerge-Triggered-By: GH:gpshead
2021-10-07 01:55:18 -07:00
Miss Islington (bot)
35d4857375
bpo-45385: Fix reference leak from descr_check (GH-28719) (GH-28779)
2021-10-07 16:48:00 +09:00
Miss Islington (bot)
ce121fd875
[doc] Mention __slots__ behavior in weakref.rst (GH-21061) (GH-28772)
...
It took me longer than I expected to figure out why a random class
I dealt with didn't support weak references. I believe this addition
will make the __slots__/weakref interaction more discoverable to people
having troubles with this. (Before this patch __slots__ was not
mentioned in weakref documentation even once).
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit b24b47e643
)
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
2021-10-06 20:52:22 +02:00
Miss Islington (bot)
4c35a2aa80
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646) (GH-28771)
...
Operating systems without support for TCP_NODELAY will raise an OSError
when trying to set the socket option, but the show can still go on.
(cherry picked from commit 0571b934f5
)
Co-authored-by: rtobar <rtobarc@gmail.com>
2021-10-06 20:29:23 +02:00
Miss Islington (bot)
dcdeb96495
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989) (GH-28762)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 7af95a1e80
)
Co-authored-by: DonnaDia <37962843+DonnaDia@users.noreply.github.com>
2021-10-06 17:15:42 +02:00
Christian Clauss
d15f47d179
[3.10] [doc] Fix typos found using codespell (GH-28744) (GH-28758)
2021-10-06 15:56:57 +02:00
Miss Islington (bot)
325e4647af
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)
...
(cherry picked from commit 4c8d543823
)
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
2021-10-06 00:15:46 +02:00
Miss Islington (bot)
258c5fbbfd
sqlite3: Modernize documentation around unicode and bytes. (GH-28652) (GH-28694)
...
(cherry picked from commit 1dac95c814
)
Co-authored-by: Julien Palard <julien@palard.fr>
2021-10-05 23:04:27 +02:00
Miss Islington (bot)
eb59e2fc11
[doc] Fix gethostbyname_ex description (GH-28700) (GH-28742)
...
It seems part of `gethostbyname_ex` doc was copied from `gethostbyaddr`. The latter has an `ip_address` parameter whereas the former doesn't.
(cherry picked from commit 4103280b83
)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
2021-10-05 19:21:25 +02:00
Miss Islington (bot)
d0d29655ff
bpo-44050: Extension modules can share state when they don't support sub-interpreters. (GH-27794) (GH-28738)
...
Automerge-Triggered-By: GH:encukou
(cherry picked from commit b9bb74871b
)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
2021-10-05 18:34:59 +02:00
Miss Islington (bot)
d0d0909a3a
bpo-45354: Skip obsolete device name tests on Windows 11 (GH-28712)
...
(cherry picked from commit de4052fe06
)
Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
2021-10-05 13:38:50 +01:00
Miss Islington (bot)
3733dddeca
[3.10] bpo-45371: Fix distutils' rpath support for clang (GH-28732) (GH-28733)
...
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit ef6196028f
)
Co-authored-by: Christian Heimes <christian@python.org>
Automerge-Triggered-By: GH:tiran
2021-10-05 03:04:52 -07:00
John Belmonte
872b1e537e
[3.10] bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089) (GH-28730)
...
Make enter_context(foo()) / enter_async_context(foo()) equivalent to
`[async] with foo()` regarding __context__ when an exception is raised.
Previously exceptions would be caught and re-raised with the wrong
context when explicitly overriding __context__ with None..
(cherry picked from commit e6d1aa1ac6
)
Co-authored-by: John Belmonte <john@neggie.net>
Automerge-Triggered-By: GH:njsmith
2021-10-04 23:21:34 -07:00
Pablo Galindo
1e328afb04
Post 3.10.0
2021-10-04 20:17:37 +01:00
Pablo Galindo
6145192287
Python 3.10.0
...
-----BEGIN PGP SIGNATURE-----
i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