Yury Selivanov
be578e0c06
bpo-46347: Yet another fix in the erorr path of PyEval_EvalCodeEx ( #30554 )
2022-01-11 16:35:19 -08:00
Yury Selivanov
20b5791ce9
bpo-46347: Fix PyEval_EvalCodeEx to correctly cleanup in error paths ( #30551 )
2022-01-11 15:37:09 -08:00
Victor Stinner
08bc1bad11
bpo-46303: Fix fileutils.h compiler warnings (GH-30550)
...
Add missing pycore_fileutils.h include in _tkinter.c and
_testconsole.c.
2022-01-12 00:35:26 +01:00
Yury Selivanov
607d8a838f
bpo-46347: Fix memory leak in PyEval_EvalCodeEx. ( #30546 )
...
First introduced in 0332e569c1
2022-01-11 14:25:28 -08:00
Ben Kehoe
dce642f244
bpo-46307: Add string.Template.get_identifiers() method (GH-30493)
...
Add `string.Template.get_identifiers()` method that returns the identifiers within the template. By default, raises an error if it encounters an invalid identifier (like `substitute()`). The keyword-only argument `raise_on_invalid` can be set to `False` to ignore invalid identifiers (like `safe_substitute()`).
Automerge-Triggered-By: GH:warsaw
2022-01-11 11:15:42 -08:00
Eric Snow
cf496d657a
bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096)
...
The empty bytes object (b'') and the 256 one-character bytes objects were allocated at runtime init. Now we statically allocate and initialize them.
https://bugs.python.org/issue45953
2022-01-11 09:37:24 -07:00
Julien Palard
6f05e1ec19
[doc] Add license_url for python-docs-theme 2022.1. (GH-30527)
2022-01-11 17:32:42 +01:00
Pablo Galindo Salgado
cedec19be8
bpo-46339: Fix crash in the parser when computing error text for multi-line f-strings (GH-30529)
...
Automerge-Triggered-By: GH:pablogsal
2022-01-11 08:30:39 -08:00
Julian Gilbey
43c5c1369c
closes bpo-46253: Change Py_UNICODE to Py_UCS4 in the C API docs to match the current source code (GH-30387)
2022-01-11 08:33:06 -06:00
Michael Oliver
73decdf021
Remove unused `Any` from `Concatenate` example in typing docs (GH-30516)
2022-01-11 21:59:26 +08:00
Mark Shannon
7357ac94f8
News item for issue 46314. (GH-30515)
2022-01-11 11:29:48 +00:00
Mark Shannon
bd04fac7eb
bpo-46331: Do not set line number of instruction storing doc-string. (GH-30518)
2022-01-11 11:28:30 +00:00
Victor Stinner
ea1a54506b
bpo-46303: Move fileutils.h private functions to internal C API (GH-30484)
...
Move almost all private functions of Include/cpython/fileutils.h to
the internal C API Include/internal/pycore_fileutils.h.
Only keep _Py_fopen_obj() in Include/cpython/fileutils.h, since it's
used by _testcapi which must not use the internal C API.
Move EncodeLocaleEx() and DecodeLocaleEx() functions from _testcapi
to _testinternalcapi, since the C API moved to the internal C API.
2022-01-11 11:56:16 +01:00
Nikita Sobolev
fc75bfb8be
bpo-46310: simplify `for` loop in `asyncio/windows_events` (GH-30334)
2022-01-11 12:51:34 +02:00
Sam Gross
e13cdca0f5
bpo-46205: exit if no workers are alive in runtest_mp (GH-30470)
2022-01-11 12:03:09 +09:00
Arie Bovenberg
081a214008
bpo-46244: Remove __slots__ from typing.TypeVar, .ParamSpec ( #30444 )
...
* add missing __slots__ to typing._TypeVarLike
* add news entry
* remove slots from _TypeVarLike base classes
* cleanup diff
* fix broken link in blurb
2022-01-11 07:43:39 +08:00
Nikita Sobolev
6223cbf86a
bpo-45331: [Enum] add rule to docs that mixin type must be subclassable (GH-30521)
2022-01-10 15:42:45 -08:00
Nikita Sobolev
13e4659276
bpo-46327: [Enum] remove skipped tests (GH-30512)
2022-01-10 11:12:34 -08:00
Nikita Sobolev
582286d71c
bpo-46301: [Enum] fix refleak tests (GH30510)
2022-01-10 11:09:00 -08:00
Irit Katriel
0d639678d3
bpo-46332: use raise..from instead of assigning __cause__ and raising (GH-30517)
2022-01-10 18:59:21 +00:00
Mark Shannon
ec0c392f34
bpo-46314: Remove extra RESUME when compiling a lamdba. (GH-30513)
2022-01-10 12:29:02 +00:00
Raymond Hettinger
d24cd49acb
bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504)
2022-01-09 18:02:06 -08:00
Inada Naoki
0b2b9d2513
bpo-23882: unittest: Drop PEP 420 support from discovery. (GH-29745)
2022-01-10 10:38:33 +09:00
Mark Dickinson
1bee9a4625
bpo-46272: Fix two heading comments in python.gram (GH-30499)
...
One typo fix and one heading change, both in comments. No functional changes.
2022-01-09 08:22:54 -08:00
Serhiy Storchaka
2d787971c6
bpo-37295: Use constant-time comb() and perm() for larger n depending on k (GH-30305)
2022-01-09 15:32:25 +02:00
Ethan Smith
5c66414b55
bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494)
...
Co-authored-by: nick.pope@infogrid.io
2022-01-09 11:58:59 +01:00
Mark Dickinson
0ea2ef5fa8
Add a (conservative) timeout for Windows builds on GitHub Actions (GH-30301)
2022-01-09 10:28:34 +00:00
Thomas Klausner
3d11c1b8b4
bpo-46308: Fix unportable test(1) operator in configure script (GH-30490)
2022-01-08 19:54:13 -05:00
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
Erlend Egeberg Aasland
b6aa38f1ca
bpo-46261: Update `sqlite3.Cursor.lastrowid` docs (GH-30407)
2022-01-08 21:17:09 +02:00
Zsolt Dollenstein
ef5376e69e
bpo-46290: Fix parameter names in dataclasses docs (GH-30450)
2022-01-08 12:56:35 +02: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
Dennis Sweeney
ad1d5908ad
bpo-46235: Do all ref-counting at once during list/tuple multiplication (GH-30346)
...
When multiplying lists and tuples by `n`, increment each element's refcount, by `n`, just once.
Saves `n-1` increments per element, and allows for a leaner & faster copying loop.
Code by sweeneyde (Dennis Sweeney).
2022-01-07 21:47:58 -06: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
Steve Dower
d81182b8ec
bpo-46217: Revert use of Windows constant that is newer than what we support (GH-30473)
2022-01-08 00:06:53 +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
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
Hugo van Kemenade
6d07a9fb7c
bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360)
...
Co-authored-by: Ian Kelling <ian@iankelling.org>
2022-01-07 19:41:23 +00:00
Jacob Walls
273cb8e757
bpo-24650: Use full term "generator function" in yield expressions docs (GH-24663)
2022-01-07 18:39:40 +00:00
Irit Katriel
9b7aa6a9d6
bpo-46216: remove spurious link to os.system() from os.time() documentation (GH-30326)
...
Automerge-Triggered-By: GH:iritkatriel
2022-01-07 10:28:08 -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
Vinay Sajip
46c7a6566b
bpo-46251: Add 'Security Considerations' section to logging configura… (GH-30411)
2022-01-06 22:35:08 +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
Irit Katriel
16dfabf75c
bpo-46286: use the new POP_JUMP_IF_NOT_NONE opcode to simplify except* (GH-30439)
...
Automerge-Triggered-By: GH:iritkatriel
2022-01-06 11:43:16 -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