Batuhan Taskaya
d382f7ee0b
bpo-46289: Make conversion of FormattedValue not optional on ASDL (GH-30467)
...
Automerge-Triggered-By: GH:isidentical
2022-01-07 13:05:28 -08:00
Erlend Egeberg Aasland
b127e70a8a
bpo-46070: Fix asyncio initialisation guard (GH-30423)
...
If init flag is set, exit successfully immediately.
If not, only set the flag after successful initialization.
2022-01-07 15:08:19 +01:00
Christian Heimes
994f90c077
bpo-45723: Fix detection of epoll ( #30449 )
2022-01-07 09:15:20 +01:00
andrei kulakov
f4e325c21d
bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382)
2022-01-07 06:50:30 +00:00
neonene
9c5fa9c97c
bpo-46208: Fix normalization of relative paths in _Py_normpath()/os.path.normpath (GH-30362)
2022-01-06 19:13:10 +00:00
Eric Snow
68c76d9766
bpo-46263: Do not ever expect "use_frozen_modules" to be -1. (gh-30438)
...
The condition is no longer valid. This should resolve the buildbot failure on FreeBSD.
https://bugs.python.org/issue46263
2022-01-06 11:56:13 -07:00
Christian Heimes
a4aa52dc28
bpo-46263: FreeBSD 14.0 jemalloc workaround for junk bytes of freed memory (GH-30434)
...
Automerge-Triggered-By: GH:tiran
2022-01-06 07:14:49 -08:00
Mark Shannon
e028ae99ec
bpo-45923: Handle call events in bytecode (GH-30364)
...
* Add a RESUME instruction to handle "call" events.
2022-01-06 13:09:25 +00:00
Andrew Svetlov
3e43fac250
Reflect 'context' arg in 'AbstractEventLoop.call_*()' methods (GH-30427)
2022-01-06 14:31:32 +02:00
penguin_wwy
3db762db72
bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE (GH-30019)
2022-01-06 11:38:35 +00:00
Victor Stinner
35d6540c90
bpo-46006: Revert "bpo-40521: Per-interpreter interned strings (GH-20085)" (GH-30422)
...
This reverts commit ea251806b8
.
Keep "assert(interned == NULL);" in _PyUnicode_Fini(), but only for
the main interpreter.
Keep _PyUnicode_ClearInterned() changes avoiding the creation of a
temporary Python list object.
2022-01-06 08:53:44 +01:00
Nikita Sobolev
e5894ca8fd
bpo-46266: Add calendar day of week constants to __all__ (GH-30412)
2022-01-05 14:21:04 -06:00
Nikita Sobolev
817a6bc9f7
bpo-46269: [Enum] remove special-casing of `__new__` in `EnumType.__dir__` (GH-30421)
2022-01-05 09:06:02 -08:00
Raymond Hettinger
43aac29cbb
bpo-46257: Convert statistics._ss() to a single pass algorithm (GH-30403)
2022-01-05 09:39:10 -06:00
Inada Naoki
46e4c257e7
bpo-46236: Fix PyFunction_GetAnnotations() returned tuple. (GH-30409)
...
Automerge-Triggered-By: GH:pablogsal
2022-01-05 04:25:54 -08:00
Christian Heimes
cae55542d2
bpo-46263: Don't use MULTIARCH on FreeBSD ( #30410 )
2022-01-05 10:54:17 +01:00
Nikita Sobolev
91bc6f9615
bpo-46262: [Enum] test error path in `Flag._missing_` (GH-30408)
...
add tests that exercise the `_missing_` error path for `Flag` and `IntFlag`
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
2022-01-04 16:11:06 -08:00
Brandt Bucher
31e43cbe5f
bpo-46009: Remove GEN_START (GH-30367)
2022-01-04 11:38:32 -08:00
Kumar Aditya
7d7817cf0f
bpo-20369: concurrent.futures.wait() now deduplicates futures given a… (GH-30168)
...
* bpo-20369: concurrent.futures.wait() now deduplicates futures given as arg.
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-01-04 13:36:13 +00:00
Pablo Galindo Salgado
70f415fb8b
bpo-46240: Correct the error for unclosed parentheses when the tokenizer is not finished (GH-30378)
2022-01-04 10:41:22 +00:00
Irit Katriel
a94461d718
bpo-46202: Remove opcode POP_EXCEPT_AND_RERAISE (GH-30302)
...
* bpo-46202: remove opcode POP_EXCEPT_AND_RERAISE
* do not assume that an exception group is truthy
2022-01-04 10:37:12 +00:00
Nikita Sobolev
5a2a65096c
bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353)
2022-01-04 10:44:26 +02:00
Nikita Sobolev
1b111338cf
bpo-46238: reuse `_winapi` constants in `asyncio.windows_events` (GH-30352)
2022-01-04 10:42:19 +02:00
Pablo Galindo Salgado
dd6c35761a
bpo-46110: Restore commit e9898bf153
...
This restores commit e9898bf153
.
2022-01-03 19:54:06 +00:00
Erlend Egeberg Aasland
9d6a239a34
bpo-44092: Don't reset statements/cursors before rollback (GH-26026)
...
In SQLite versions pre 3.7.11, pending statements would block a rollback. This is no longer the case, so remove the workaround.
2022-01-03 19:02:39 +00:00
Pablo Galindo Salgado
9d35dedc5e
Revert "bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)" (GH-30363)
...
This reverts commit e9898bf153
temporarily as we want to confirm if this commit is the cause of a slowdown at startup time.
2022-01-03 18:29:18 +00:00
David CARLIER
c960b191b8
bpo-46222: posixmodule sendfile FreeBSD's constants updates. (GH-30327)
...
* posixodule sendfile FreeBSD's constants updates.
* 📜 🤖 Added by blurb_it.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2022-01-03 15:01:04 +02:00
Ned Deily
549e628272
bpo-40477: macOS Python Launcher app fixes for recent macOS releases (GH-30348)
...
This change solves two problems encountered by users of the macOS Python Launcher app on recent macOS releases (10.14+):
- The launcher app was no longer able to launch the macOS Terminal.app to run a script.
- Even if Terminal.app was already launched, the launcher app was unable to send an Apple Event to Terminal.app to open and run Python with the desired .py file.
2022-01-03 01:19:59 -05:00
Irit Katriel
65e7c1f90e
bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. (GH-30289)
2022-01-02 23:22:42 +00:00
Nikita Sobolev
ce4d25f3cd
bpo-46196: document method cmd.Cmd.columnize ( #30303 )
...
The method is already written and tested, now it's officially public.
2022-01-02 13:33:20 -05:00
Irit Katriel
a82baed0e9
bpo-45615: Add missing test for printing traceback for non-exception. Fix traceback.py (GH-30091)
2022-01-02 09:34:03 +00:00
Sebastian Pipping
e18d81569f
bpo-45321: Add missing error codes to module `xml.parsers.expat.errors` (GH-30188)
...
The idea is to ensure that module `xml.parsers.expat.errors`
contains all known error codes and messages,
even when CPython is compiled or run with an outdated version of libexpat.
https://bugs.python.org/issue45321
2021-12-31 10:57:00 +01:00
Jason R. Coombs
99945c6b5c
bpo-46109: Separate out files relating to importlib.resources (GH-30160)
...
* Separate out files relating to importlib.resources
* Update Introduction to direct readers to the submodule documentation.
* Create separate file for abcs relating to resources.
* Move abc docs back to where they were.
2021-12-30 21:17:05 -05:00
Jason R. Coombs
e712a5b277
bpo-46118: Move importlib.resources to its own package. ( #30176 )
...
* bpo-46118: Move importlib.resources to its own package.
* Expand compatibility shims with documentation and explicit imports.
2021-12-30 21:00:48 -05:00
Dong-hee Na
fb44d05896
bpo-46085: Fix iterator cache mechanism of OrderedDict. (GH-30290)
2021-12-30 12:35:45 +09:00
Nikita Sobolev
d12bec6993
bpo-43424: Deprecate `webbrowser.MacOSXOSAScript._name` attribute (GH-30241)
2021-12-30 10:30:13 +09:00
Carlos Damazio
8e11237c5d
closes docs: remove references to Py_USING_MEMORY_DEBUGGER (GH-30284)
2021-12-29 16:20:42 -06:00
David CARLIER
66c47b63a0
bpo-46176: mmap module adding MAP_STACK constant. (GH-30252)
2021-12-29 22:52:29 +09:00
Mark Dickinson
02b5417f11
bpo-37295: Speed up math.comb(n, k) for 0 <= k <= n <= 67 (GH-30275)
2021-12-28 12:26:40 +00:00
Xinhang Xu
3581c7abbe
bpo-46055: Speed up binary shifting operators (GH-30044)
...
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
2021-12-27 18:36:55 +00:00
Serhiy Storchaka
ad4857884b
bpo-43413: Revert changes in set.__init__ (GH-28403)
...
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2021-12-26 13:27:01 +02:00
Serhiy Storchaka
1944434b44
bpo-22815: Print unexpected successes in summary in TextTestResult (GH-30138)
2021-12-26 13:22:44 +02:00
Kumar Aditya
a23ab7b6d8
bpo-23819: Fix asyncio tests on python optimized mode (GH-30195)
2021-12-26 13:13:14 +02:00
Serhiy Storchaka
1fb7c61ca7
Remove a NEWS entry for bpo-45878 (GH-30259)
...
The docs linter complains about it, and in general news entries for such changes are not required.
2021-12-26 12:38:19 +02:00
Serhiy Storchaka
078abb676c
bpo-46032: Check types in singledispatch's register() at declaration time (GH-30050)
...
The registry() method of functools.singledispatch() functions checks now
the first argument or the first parameter annotation and raises a TypeError if it is
not supported. Previously unsupported "types" were ignored (e.g. typing.List[int])
or caused an error at calling time (e.g. list[int]).
2021-12-25 14:16:14 +02:00
Nikita Sobolev
1b30660c3b
bpo-46120: State that `|` is preferred over `Union` (GH-30222)
...
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
2021-12-24 13:36:09 -08:00
Nikita Sobolev
b8de8b7039
bpo-46150: ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser` (GH-30240)
...
Ensure `fakeuser` does not exist in `PosixPathTest.test_expanduser`
2021-12-24 00:07:50 -08:00
David Hewitt
31ff96712e
bpo-46140: take more Py_buffer arguments as const * (GH-30217)
2021-12-22 15:07:46 +02:00
Kumar Aditya
fc54e722a2
bpo-46106: Update OpenSSL to 1.1.1m (GH-30211)
...
Co-authored-by: Ned Deily <nad@python.org>
2021-12-21 21:20:16 -05:00
Irit Katriel
c66fc0fb53
bpo-46107: ExceptionGroup.subgroup()/split() should copy __note__ to the parts (GH-30159)
2021-12-21 10:12:26 +00:00