Irit Katriel
40d4f15793
gh-102828: fix test failure (add missing skip instructions) ( #102835 )
2023-03-20 00:03:55 +00:00
Pieter Eendebak
382ee2f0f2
gh-102491: Remove IronPython version check in sys_version ( #102492 )
2023-03-19 15:52:47 -07:00
JosephSBoyle
699cb20ae6
gh-102810: Add docstrings to the public-facing methods of `asyncio.Timeout` ( #102811 )
...
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-19 20:06:09 +00:00
Irit Katriel
d51a6dc28e
gh-102828: add onexc arg to shutil.rmtree. Deprecate onerror. ( #102829 )
2023-03-19 18:33:51 +00:00
Irit Katriel
4d1f033986
gh-102778: revert changes to idlelib ( #102825 )
2023-03-19 12:19:59 -04:00
Irit Katriel
ccb5af7bfe
gh-102755: fix refleak ( #102826 )
2023-03-19 15:18:24 +00:00
Irit Katriel
ad77b80b05
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ( #102816 )
2023-03-19 15:17:59 +00:00
Raymond Hettinger
3adb23a17d
Add more comments to hypot() (GH-102817)
2023-03-18 12:21:48 -05:00
Irit Katriel
1cb75a9ce0
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ( #102769 )
2023-03-18 13:44:47 +00:00
Irit Katriel
e1e9bab006
gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,sys.last_traceback ( #102779 )
2023-03-18 11:47:11 +00:00
gaogaotiantian
039714d00f
gh-101975: Fixed a potential SegFault on garbage collection (GH-102803)
2023-03-18 10:59:21 +00:00
Irit Katriel
b3cc11a08e
gh-102799: remove unnecessary calls to sys.exc_info() in tests ( #102800 )
2023-03-18 07:19:38 +00:00
Raymond Hettinger
72186aa637
Simplify and improve accuracy for subnormals in hypot() (GH-102785)
2023-03-17 14:06:52 -05:00
Carl Meyer
174c4bfd0f
gh-102781: fix cwd dependence in cases generator ( #102782 )
2023-03-17 11:01:10 -06:00
Inada Naoki
65fb7c4055
gh-102701: Fix overflow in dictobject.c (GH-102750)
2023-03-17 22:39:09 +09:00
Kumar Aditya
4f5774f648
GH-78530: add support for generators in `asyncio.wait` ( #102761 )
2023-03-17 06:58:43 +05:30
Steve Dower
f33b33eb31
Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102764)
2023-03-17 01:07:07 +00:00
Irit Katriel
3f9285a8c5
gh-102755: Add PyErr_DisplayException(exc) ( #102756 )
2023-03-16 22:18:04 +00:00
Mark Dickinson
405739f916
Fix outdated note about 'int' rounding or truncating ( #102736 )
2023-03-16 20:34:42 +00:00
Irit Katriel
6372e290c0
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ( #102760 )
2023-03-16 19:03:52 +00:00
Steve Dower
0f175766e2
gh-99726: Improves correctness of stat results for Windows, and uses faster API when available (GH-102149)
...
This deprecates `st_ctime` fields on Windows, with the intent to change them to contain the correct value in 3.14. For now, they should keep returning the creation time as they always have.
2023-03-16 17:27:21 +00:00
Irit Katriel
e108af6eca
gh-102192: remove redundant exception fields from ssl module socket ( #102466 )
2023-03-16 16:41:10 +00:00
Irit Katriel
61d6c110d6
gh-102192: Replace PyErr_Fetch/Restore etc by more efficient alternatives ( #102743 )
2023-03-16 16:21:49 +00:00
Eric Snow
84e20c689a
gh-102737: Un-ignore ceval.c in the CI globals check (gh-102745)
...
The tool now allows user-added #LINE preprocessor directives.
https://github.com/python/cpython/issues/102737
2023-03-16 09:26:42 -06:00
Kumar Aditya
adaed17341
GH-102748: remove legacy support for generator based coroutines from `asyncio.iscoroutine` ( #102749 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-16 20:28:10 +05:30
Nikita Sobolev
fbe82fdd77
gh-102721: Improve coverage of `_collections_abc._CallableGenericAlias` ( #102722 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-16 14:47:30 +00:00
Raymond Hettinger
b0ec6253c9
GH-102653: Make recipe docstring show the correct distribution ( #102742 )
2023-03-16 09:32:18 -05:00
Nikita Sobolev
a297d59609
Add comments to `{typing,_collections_abc}._type_repr` about each other ( #102752 )
...
Remove `if` condition in `_collections_abc._type_repr` that's no longer needed, bringing it in sync with `typing._type_repr`.
2023-03-16 13:05:38 +00:00
Irit Katriel
51d693c584
gh-102594: PyErr_SetObject adds note to exception raised on normalization error ( #102675 )
2023-03-16 10:16:01 +00:00
yonatanp
2dc94634b5
gh-94440: Fix issue of ProcessPoolExecutor shutdown hanging ( #94468 )
...
Fix an issue of concurrent.futures ProcessPoolExecutor shutdown hanging.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-15 21:44:52 -07:00
Kumar Aditya
a44553ea9f
GH-100112: avoid using iterable coroutines in asyncio internally ( #100128 )
2023-03-16 09:20:43 +05:30
Jamoo721
1c9f3391b9
gh-102690: Use Edge as fallback in webbrowser instead of IE ( #102691 )
2023-03-15 22:52:11 -04:00
Eric Snow
2a03ed034e
gh-102660: Fix Refleaks in import.c ( #102744 )
...
gh-102661 introduced some leaks. This fixes them.
https://github.com/python/cpython/issues/102660
2023-03-15 18:43:54 -06:00
Irit Katriel
675b97a6ab
gh-102738: remove from cases generator the code related to register instructions ( #102739 )
2023-03-15 21:25:31 +00:00
Raymond Hettinger
0a22aa0528
Simplify and speed-up math.hypot() and math.dist() (GH-102734)
2023-03-15 15:15:23 -05:00
Martin Breuss
00d1ef73d6
Fix typo in code comment ( #102726 )
2023-03-15 19:18:18 +00:00
Alex Waygood
215007b576
Exclude `ceval.c` from the C-analyzer tool ( #102735 )
...
The "check if generated files are up to date" CI check appears to be currently failing on all PRs (but not on pushes to main)
See, for example:
- https://github.com/python/cpython/pull/94468
- https://github.com/python/cpython/pull/94468
- https://github.com/python/cpython/pull/102731
This appears to be because the C-analyzer tool doesn't like the `#line` directives introduced in 70185de1ab
. I'm advised by the message printed to the terminal in https://github.com/python/cpython/actions/runs/4428706945/jobs/7768216988#step:14:84 that this is the appropriate short-term fix!
2023-03-15 18:19:07 +00:00
Guido van Rossum
70185de1ab
gh-102654: Insert #line directives in generated_cases.c.h ( #102669 )
...
This behavior is optional, because in some extreme cases it
may just make debugging harder. The tool defaults it to off,
but it is on in Makefile.pre.in.
Also note that this makes diffs to generated_cases.c.h noisier,
since whenever you insert or delete a line in bytecodes.c,
all subsequent #line directives will change.
2023-03-15 08:37:36 -07:00
Julien Palard
61b9ff35cb
gh-101100: Documenting --prefix and --exec-prefix. (GH-102695)
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-03-15 16:10:03 +01:00
Max Bachmann
afa6092ee4
gh-102281: Fix potential nullptr dereference + use of uninitialized memory (gh-102282)
2023-03-15 21:58:43 +09:00
Nikita Sobolev
2b5781d659
gh-102615: Use `list` instead of `tuple` in `repr` of paramspec ( #102637 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-15 09:33:41 +00:00
Tom Levy
8647ba4b63
Remove misformatted exclamation marks in docs ( #102694 )
...
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.
(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)
The exclamation marks in venv.rst were introduced in #98350 . See
comments [2] and [3] for additional discussion.
[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047
Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
2023-03-15 09:06:32 +02:00
Andre Hora
5e0865f22e
gh-101377: improving test_locale_calendar_formatweekday of calendar ( #101378 )
...
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2023-03-14 22:36:31 -04:00
JosephSBoyle
e94edab727
gh-102560 Add docstrings to asyncio.TaskGroup ( #102565 )
2023-03-14 17:33:19 -07:00
Steve Dower
5fce813d8e
gh-102519: Avoid failing tests due to inaccessible volumes (GH-102706)
2023-03-15 00:07:30 +00:00
Robert Prater (B. Eng)
0a539b5db3
gh-102703: Fix typo in modules tutorial documentation (GH-102707)
...
**Before**
This prevents directories with a common name, such as ``string``, unintentionally hiding ...
**After**
This prevents directories with a common name, such as ``string``, from unintentionally hiding ...
2023-03-14 17:03:43 -07:00
Irit Katriel
152292b98f
gh-101578: mention in what's new in 3.12 that exceptions are now normalized before stored ( #102702 )
2023-03-14 22:38:15 +00:00
JosephSBoyle
a028778d4c
Rename redundant enum tests so that they run ( #102535 )
2023-03-14 15:16:45 -07:00
Dong-hee Na
d77c48740f
gh-102674: Remove _specialization_stats from Lib/opcode.py ( #102685 )
...
It's not use except in a test, so move it there instead.
2023-03-14 13:20:14 -07:00
Eric Snow
cdb21ba74d
gh-102660: Handle m_copy Specially for the sys and builtins Modules (gh-102661)
...
It doesn't make sense to use multi-phase init for these modules. Using a per-interpreter "m_copy" (instead of PyModuleDef.m_base.m_copy) makes this work okay. (This came up while working on gh-101660.)
Note that we might instead end up disallowing re-load for sys/builtins since they are so special.
https://github.com/python/cpython/issues/102660
2023-03-14 14:01:35 -06:00