Nikita Sobolev
0fc58c1e05
bpo-46306: simplify CodeType attribute access in doctest.py (GH-30481)
...
Assume co_firstlineno always exists on types.CodeType objects.
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2022-01-08 15:13:42 -05:00
Nikita Sobolev
8d59d2563b
bpo-46301: [Enum] test uncomparable values in _convert_ (GH-30472)
...
add tests that cover different types, and same non-comparable types
2022-01-08 11:43:42 -08:00
Dong-hee Na
45d44b950f
bpo-46299: Improve test_descr (GH-30475)
2022-01-08 17:14:40 +09:00
Nikita Sobolev
e63066cfed
bpo-46299: improve test_descr.py with stricter error handling (GH-30471)
2022-01-08 12:51:51 +09:00
Pablo Galindo Salgado
6fa8b2ceee
bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463)
2022-01-08 00:23:40 +00:00
Daniel
c9dc1f491e
bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466)
2022-01-07 22:26:00 +00:00
Nikita Sobolev
74d1663580
bpo-46296: [Enum] add a test for missing value recovery (GH-30458)
...
In `__set_name__` there is a check for the `_value_` attribute and an attempt to add it if missing; this adds a test to cover the case for simple enums with a custom `__new__` method.
2022-01-07 13:44:21 -08:00
andrei kulakov
f4e325c21d
bpo-41011: venv -- add more variables to pyvenv.cfg (GH-30382)
2022-01-07 06:50:30 +00:00
Christian Heimes
c9137d4b63
bpo-46263: Fix second location that needs MALLOC_CONF on FreeBSD (GH-30440)
...
Automerge-Triggered-By: GH:tiran
2022-01-06 11:49:03 -08: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
Kumar Aditya
b50e5e916a
bpo-46278: fix typo introduced in GH-30427 (GH-30430)
...
Automerge-Triggered-By: GH:asvetlov
2022-01-06 05:21:24 -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
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
Simon McVittie
dd50316e45
bpo-43137: Revert "webbrowser: Don't run gvfs-open on GNOME" (GH-30417)
...
gvfs-open was deprecated in 2015 and removed in 2018, but its replacement,
gio(1), is not available in Ubuntu 16.04, which is apparently still
supported by CPython upstream even though it is considered to be EOL by
Ubuntu developers.
Signed-off-by: Simon McVittie <smcv@debian.org>
2022-01-05 11:53:23 +00:00
Brandt Bucher
332e6b9725
bpo-45256: Don't track the exact depth of each InterpreterFrame (GH-30372)
2022-01-05 11:30:26 +00: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
Tim Peters
3aa5242b54
bpo-46233: Minor speedup for bigint squaring (GH-30345)
...
x_mul()'s squaring code can do some redundant and/or useless
work at the end of each digit pass. A more careful analysis
of worst-case carries at various digit positions allows
making that code leaner.
2022-01-03 20:41:16 -06: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
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
Jade Lovelace
8e75c6b49b
argparse docs: prog default is the basename of argv[0] (GH-30298)
2022-01-02 12:16:25 -08:00
Tim Peters
863729e9c6
bpo-46218: Change long_pow() to sliding window algorithm (GH-30319)
...
* bpo-46218: Change long_pow() to sliding window algorithm
The primary motivation is to eliminate long_pow's reliance on that the number of bits in a long "digit" is a multiple of 5. Now it no longer cares how many bits are in a digit.
But the sliding window approach also allows cutting the precomputed table of small powers in half, which reduces initialization overhead enough that the approach pays off for smaller exponents too. Depending on exponent bit patterns, a sliding window may also be able to save some bigint multiplies (sometimes when at least 5 consecutive exponent bits are 0, regardless of their starting bit position modulo 5).
Note: boosting the window width to 6 didn't work well overall. It give marginal speed improvements for huge exponents, but the increased overhead (the small-power table needs twice as many entries) made it a loss for smaller exponents.
Co-authored-by: Oleg Iarygin <dralife@yandex.ru>
2022-01-02 13:18:20 -06: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
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
Hugo van Kemenade
2cf7d02b99
bpo-46178: Remove/rename redundant Travis CI code ( #30309 )
2021-12-30 16:16:27 -08:00
andrei kulakov
8d7644fa64
bpo-45853: Fix misspelling and unused import in pathlib (GH-30292)
2021-12-30 09:45:06 +02:00
Nikita Sobolev
d12bec6993
bpo-43424: Deprecate webbrowser.MacOSXOSAScript._name attribute (GH-30241)
2021-12-30 10:30:13 +09: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
E-Paine
2e3e0d23ad
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
2021-12-26 13:28:24 +02: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
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
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
Gregory P. Smith
d8880677a7
Allow test_pathlib to pass on systems where fakeuser exists. (GH-30244)
2021-12-23 19:17:40 -08: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
Pablo Galindo Salgado
e9898bf153
bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)
...
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
2021-12-20 15:43:26 +00:00