Serhiy Storchaka
15188b115a
bpo-45401: Fix a resource warning in test_logging (GH-28864)
2021-10-11 11:54:44 +03:00
Joongi Kim
1a7892414e
bpo-45416: Fix use of asyncio.Condition() with explicit Lock objects (GH-28850)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-10 19:01:41 +03:00
Vinay Sajip
62a667784b
bpo-45401: Change shouldRollover() methods to only rollover regular f… (GH-28822)
...
…iles.
Also changed some historical return values from 1 -> True and 0 -> False.
2021-10-10 08:15:24 -07:00
Christophe Nanteuil
0bcc5ade9b
Fix class pattern docs to refer to class patterns (GH-28849)
2021-10-10 22:12:51 +08:00
180909
532403e7c6
Remove repeated 'the' in docs (GH-28852)
2021-10-10 22:05:21 +08:00
Inada Naoki
ad970e8623
bpo-29410: Change the default hash algorithm to SipHash13. (GH-28752)
...
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Christian Heimes <christian@python.org>
2021-10-10 17:29:46 +09:00
Inada Naoki
a1c3c9e824
Fix EncodingWarning in test_tools. (GH-28846)
2021-10-10 09:14:40 +02:00
Gregory P. Smith
3d1ca867ed
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.
2021-10-09 12:34:13 -07:00
Landon Yarrington
5b4a7675bc
Fix dataclassses spelling (GH-28837)
2021-10-09 15:17:52 -04:00
Rim Chatti
dbd62e74da
Fix the "Finding all Adverbs" example (GH-21420)
...
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-09 21:46:56 +03:00
Pablo Galindo Salgado
543acbce5a
bpo-45256: Small cleanups for the code that inlines Python-to-Python calls in ceval.c (GH-28836)
2021-10-09 17:52:05 +01:00
Serhiy Storchaka
b454e8e4df
bpo-27580: Add support of null characters in the csv module. (GH-28808)
2021-10-09 19:17:43 +03:00
Pablo Galindo Salgado
b4903afd4d
bpo-45256: Remove the usage of the C stack in Python to Python calls (GH-28488)
...
Ths commit inlines calls to Python functions in the eval loop and steals all the arguments in the call from the caller for
performance.
2021-10-09 16:51:30 +01:00
Dong-hee Na
ec04db74e2
bpo-20028: Keep original exception when PyUnicode_GetLength return -1 (GH-28832)
2021-10-10 00:16:12 +09:00
Dong-hee Na
34bbc87b2d
bpo-20028: Improve error message of csv.Dialect when initializing (GH-28705)
2021-10-09 23:50:12 +09:00
Mark Shannon
5e173f5db1
Bump MAGIC_NUMBER to reflect change in JUMP_ABSOLUTE semantics. (GH-28829)
2021-10-09 14:17:22 +01:00
Julien Palard
9fa930dd48
[doc]: update susp-ignored.csv after a98b273c
. (GH-28827)
2021-10-09 10:25:00 +02:00
Julien Palard
c91b6f57f3
bpo-10716: Migrating pydoc to html5. (GH-28651)
2021-10-09 09:36:50 +02:00
Micael Jarniac
a98b273ce4
Replace usage of List[...] with list[...] in typing docs (GH-28821)
...
The ``List[...]`` form is deprecated since 3.9.
2021-10-09 11:33:37 +08:00
Victor Stinner
b108db63e0
bpo-45410: libregrtest -jN writes stderr into stdout (GH-28819)
...
When libregrtest spawns a worker process, stderr is now written into
stdout to keep messages order. Use a single pipe for stdout and
stderr, rather than two pipes. Previously, messages were out of order
which made analysis of buildbot logs harder
2021-10-08 17:14:37 +02:00
Jeong YunWon
9f7a94fd66
bpo-45407: Remove outdated XXX comment from Struct___init___impl (GH-28805)
2021-10-08 15:45:11 +09:00
Matthias Reichl
392a898353
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)
...
Prevent use-after-free of running loop holder via cache.
2021-10-08 00:46:49 +02:00
Pablo Galindo Salgado
0219017df7
bpo-45408: Don't override previous tokenizer errors in the second parser pass (GH-28812)
2021-10-07 22:33:05 +01:00
Steve Dower
6811fdaec8
bpo-45337: Use the realpath of the new executable when creating a venv on Windows (GH-28663)
2021-10-07 21:26:12 +01:00
Erlend Egeberg Aasland
8deb7afbaa
bpo-16379: Fix SQLite version checks in test_module_constants() (GH-28809)
...
Automerge-Triggered-By: GH:pablogsal
2021-10-07 12:48:13 -07:00
Victor Stinner
768aaf6c43
bpo-45403: Fix test_sys.test_stdlib_dir() (GH-28785)
...
Fix test_sys.test_stdlib_dir() when Python is built outside the
source tree: compare normalized paths.
2021-10-07 21:22:28 +02:00
Victor Stinner
ff8859d965
bpo-45402: Fix test_tools.test_sundry() (GH-28786)
...
Fix test_tools.test_sundry() when Python is built out of tree: fix
how the freeze_modules.py tool locates the _freeze_module program.
2021-10-07 21:19:13 +02:00
Pablo Galindo Salgado
32485cecab
Remove draft notice on the 3.10 What's new document (GH-28806)
...
Automerge-Triggered-By: GH:pablogsal
2021-10-07 11:00:29 -07:00
Victor Stinner
4e605666b0
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.
2021-10-07 13:47:23 +02:00
Erlend Egeberg Aasland
3f2c433da5
bpo-45041: Restore `sqlite3` executescript behaviour for `SELECT` queries (GH-28509)
...
* bpo-45041: Restore sqlite3 executescript behaviour for select queries
* Add regression test
2021-10-07 10:16:45 +01:00
Christian Clauss
dd02a696e5
Fix typos in the Modules directory (GH-28761)
2021-10-07 01:34:42 -07:00
Ammar Askar
5baec4aea6
bpo-35970: Add help flag to base64 module (GH-28774)
...
This continues off rkuska's work from https://github.com/python/cpython/pull/11789 seeing as the patch wasn't updated to add tests.
2021-10-06 18:38:43 -07:00
Dong-hee Na
e6ff4eba6d
bpo-45385: Fix reference leak from descr_check ( #28719 )
2021-10-07 09:51:56 +09:00
Christian Clauss
5f401f1040
Fix typos in the Objects directory (GH-28766)
2021-10-06 16:57:10 -07:00
Ammar Askar
db72e58ea5
bpo-29505: Add fuzzer for ast.literal_eval (GH-28777)
...
This supercedes https://github.com/python/cpython/pull/3437 and fuzzes the method we recommend for unsafe inputs, `ast.literal_eval`. This should exercise the tokenizer and parser.
2021-10-06 16:22:09 -07:00
Christian Clauss
745c9d9dfc
Fix typos in the Lib directory (GH-28775)
...
Fix typos in the Lib directory as identified by codespell.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2021-10-06 16:13:48 -07:00
Christian Clauss
db693df3e1
Fix typos in the Python directory (GH-28767)
2021-10-06 15:55:27 -07:00
Steve Dower
6c942a86a4
bpo-45375: Fix off by one error in buffer allocation (GH-28764)
2021-10-06 20:09:33 +01:00
Christian Clauss
8e8f752217
Fix typos in the Include directory (GH-28745)
2021-10-06 11:32:38 -07:00
Jakub Stasiak
b24b47e643
[doc] Mention __slots__ behavior in weakref.rst (GH-21061)
...
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>
2021-10-06 20:23:02 +02:00
Christian Clauss
682aecfdeb
Fix typos in the Tools directory (GH-28769)
...
Like #28744 but for the Tools directory.
[skip issue] Opening a related issue is pending python/psf-infra-meta#130
Automerge-Triggered-By: GH:pablogsal
2021-10-06 10:55:16 -07:00
rtobar
0571b934f5
bpo-45328: Avoid failure in OSs without TCP_NODELAY support (GH-28646)
...
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.
2021-10-06 19:49:44 +02:00
Christian Clauss
470145f572
[Misc] [Mac] Fix typos found using codespell (GH-28756)
2021-10-06 19:40:09 +02:00
Łukasz Langa
f528045f69
bpo-40321: Add missing test, slightly expand documentation (GH-28760)
2021-10-06 17:28:16 +02:00
Inada Naoki
61892c0476
Remove test_nntplib from quicktest (GH-28754)
2021-10-06 17:03:58 +02:00
DonnaDia
7af95a1e80
bpo-34804: [doc] Rephrase section on side effects in functional.rst for clarity (GH-27989)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-10-06 16:51:55 +02:00
Mark Shannon
a7252f88d3
bpo-40116: Add insertion order bit-vector to dict values to allow dicts to share keys more freely. (GH-28520)
2021-10-06 13:19:53 +01:00
Mark Shannon
f6eafe18c0
Normalize jumps in compiler. All forward jumps to use JUMP_FORWARD. (GH-28755)
2021-10-06 13:05:45 +01:00
Jochem Schulenklopper
c379bc5ec9
bpo-40321: Support HTTP response status code 308 in urllib.request ( #19588 )
...
* Support HTTP response status code 308 in urllib.
HTTP response status code 308 is defined in https://tools.ietf.org/html/rfc7538 to be the permanent redirect variant of 307 (temporary redirect).
* Update documentation to include http_error_308()
* Add blurb for bpo-40321 fix
Co-authored-by: Roland Crosby <roland@rolandcrosby.com>
2021-10-05 19:02:58 -07:00
Christian Clauss
241bda785a
[doc] Fix typos found using codespell (GH-28744)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-10-05 23:48:44 +02:00