Victor Stinner
77bb0d5f50
gh-108765: Include explicitly <unistd.h> in signalmodule.c ( #111402 )
...
unistd.h is needed by alarm() and pause() functions.
2023-10-27 20:56:12 +00:00
Zack Cerza
8a158a753c
gh-111406: Fix broken link to bpython's site ( #111407 )
2023-10-27 18:36:22 +00:00
Jonathan Berthias
9a2f2f46ca
Fix typos in import system docs ( #111396 )
2023-10-27 13:20:55 +00:00
Nikita Sobolev
524a701d07
gh-111386: Fix `uint32_t` cast in `generated_cases.c.h` ( #111387 )
2023-10-27 12:37:59 +01:00
Nikita Sobolev
aa732459c5
gh-111388: Add `show_group` parameter to `traceback.format_exception_only` ( #111390 )
2023-10-27 11:11:26 +01:00
Łukasz Langa
6d42759c5e
gh-111276: Clarify docs and comments about the role of LC_CTYPE ( #111319 )
...
Fix locale.LC_CTYPE documentation to no longer mention string.lower() et al. Those functions were removed in Python 3.0:
https://docs.python.org/2/library/string.html#deprecated-string-functions
Also, fix a comment in logging about locale-specific behavior of `str.lower()`.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-27 11:43:01 +02:00
Satish Pokala
74f0772892
no-issue: Remove unused variable in getpath.py (gh-111372)
2023-10-27 15:25:22 +09:00
Raymond Hettinger
7f9a99e854
gh-89519: Remove classmethod descriptor chaining, deprecated since 3.11 (gh-110163)
2023-10-27 00:24:56 -05:00
Nikita Sobolev
ee2d22f06d
gh-111343: Fix `itertools` docs: `start` arg is optional for `count` (gh-111344)
2023-10-27 04:30:13 +00:00
gsallam
21f068d80c
gh-109587: Allow "precompiled" perf-trampolines to largely mitigate the cost of enabling perf-trampolines ( #109666 )
2023-10-27 03:57:29 +00:00
Pablo Galindo Salgado
3d2f1f0b83
gh-111380: Show SyntaxWarnings only once when parsing if invalid syntax is encouintered ( #111381 )
2023-10-27 12:19:34 +09:00
Tian Gao
a254120f2f
GH-94438: Fix RuntimeWarning for jump tests in test_sys_settrace (GH-111341)
2023-10-26 11:47:51 -07:00
zcxsythenew
b468538d35
GH-111293: Fix DirEntry.inode dropping higher bits on Windows (GH-111294)
2023-10-26 17:37:52 +01:00
Irit Katriel
a0c414c35d
gh-111354: define names for RESUME oparg values ( #111365 )
2023-10-26 16:30:18 +01:00
Serhiy Storchaka
309efb39dc
gh-111259: Optimize recursive wildcards in pathlib (GH-111303)
...
Regular expression pattern `(?s:.)` is much faster than `[\s\S]`.
2023-10-26 18:07:06 +03:00
Irit Katriel
67a91f78e4
gh-109094: replace frame->prev_instr by frame->instr_ptr ( #109095 )
2023-10-26 13:43:10 +00:00
Serhiy Storchaka
573eff3e2e
Output more details in the re tracing (GH-111357)
2023-10-26 16:42:42 +03:00
Nikita Sobolev
31c05b72c1
gh-111348: Fix direct invocation of `test_doctest`; remove `test_doctest.test_coverage` ( #111349 )
...
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2023-10-26 12:45:39 +00:00
Mark Shannon
b0699aa544
GH-111213: Fix a few broken stats (GH-111216)
2023-10-26 11:33:12 +01:00
Mark Shannon
5c9d4497ab
GH-111339: Change `valid` property of executors to `is_valid()` method (GH-111350)
2023-10-26 11:31:51 +01:00
Batuhan Taskaya
78e6d72e38
bpo-43950: handle wide unicode characters in tracebacks ( #28150 )
2023-10-26 07:05:29 +00:00
Pablo Galindo Salgado
90a1b2859f
gh-67224: Show source lines in tracebacks when using the -c option when running Python ( #111200 )
2023-10-26 15:17:28 +09:00
Tian Gao
3f84a19e62
Docs: Add `restart_events()` and positional arg semantics for `sys.monitoring` ( #111291 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-25 18:03:32 +00:00
Khalil Mouawad
14f52e1548
gh-110679: Improved markup in enum.rst (GH-110747)
2023-10-25 10:32:09 -07:00
Irit Katriel
0db2517687
gh-100762: Fix optimization in gen_close ( #111069 )
2023-10-25 16:22:34 +01:00
Serhiy Storchaka
a4981921aa
gh-111165: Add missed "support." prefix for "verbose" (GH-111327)
2023-10-25 14:50:25 +00:00
Erlend E. Aasland
1262e41842
gh-108590: Improve sqlite3 docs on encoding issues and how to handle those ( #108699 )
...
Add a guide for how to handle non-UTF-8 text encodings.
Link to that guide from the 'text_factory' docs.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Corvin <corvin@corvin.dev>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-25 15:58:00 +02:00
Hugo van Kemenade
81ed80d843
gh-111187: Postpone removal version for locale.getdefaultlocale() to 3.15 ( #111188 )
2023-10-25 16:47:41 +03:00
Nikita Sobolev
f6304949bb
gh-111230: Fix errors checking in _ssl module init ( #111232 )
...
Introduce ADD_INT_CONST macro wrapper for PyModule_AddIntConstant()
2023-10-25 15:42:18 +02:00
Serhiy Storchaka
9da98c0d9a
gh-111174: Fix crash in getbuffer() called repeatedly for empty BytesIO (GH-111210)
2023-10-25 13:50:16 +03:00
Serhiy Storchaka
f6a45a03d0
gh-111165: Move test running code from test.support to libregrtest (GH-111166)
...
Remove no longer used functions run_unittest() and run_doctest() from
the test.support module.
2023-10-25 12:41:21 +03:00
scoder
a8a89fcd1f
gh-106320: Re-add some PyLong/PyDict C-API functions (GH-#111162)
...
* gh-106320: Re-add _PyLong_FromByteArray(), _PyLong_AsByteArray() and _PyLong_GCD() to the public header files since they are used by third-party packages and there is no efficient replacement.
See https://github.com/python/cpython/issues/111140
See https://github.com/python/cpython/issues/111139
* gh-111262: Re-add _PyDict_Pop() to have a C-API until a new public one is designed.
2023-10-25 11:33:48 +02:00
Serhiy Storchaka
b2ba298527
gh-111065: Add more tests for the C API with the PySys_ prefix (GH-111067)
...
* Move existing tests for PySys_GetObject() and PySys_SetObject() into
specialized files.
* Add test for PySys_GetXOptions() using _testcapi.
* Add tests for PySys_FormatStdout(), PySys_FormatStderr(),
PySys_WriteStdout() and PySys_WriteStderr() using ctypes.
2023-10-25 11:33:12 +03:00
Artyom Romanov
0d1cbff833
Bump test deps: `ruff` and `mypy` ( #111288 )
2023-10-25 01:05:37 -07:00
Nikita Sobolev
81b03e7810
gh-111295: Fix error checking in time extension module init ( #111296 )
...
Introduce ADD_INT macro wrapper for PyModule_AddIntConstant()
2023-10-25 07:19:40 +00:00
Nikita Sobolev
2838c550f7
gh-111233: Fix error checking in select extension module init ( #111234 )
...
Introduce ADD_INT macro wrapper for PyModule_AddIntConstant()
2023-10-25 07:18:21 +00:00
Nikita Sobolev
3052c098ca
gh-111253: Fix error checking in _socket module init ( #111254 )
2023-10-25 07:11:04 +00:00
Nikita Sobolev
86887a2084
gh-111251: Fix error checking in _blake2 module init ( #111252 )
...
Introduce ADD_INT_CONST macro wrapper for PyModule_AddIntConstant()
2023-10-25 08:32:46 +02:00
Pablo Galindo Salgado
3211d5793f
gh-57129: Add test for inspect.getsource in the REPL ( #111197 )
2023-10-25 15:15:41 +09:00
Pavel Karateev
8b44f3c54b
Fix first parameter name in `tool` functions from `sys.monitoring` ( #111286 )
2023-10-24 21:19:54 +00:00
Jokimax
c73b0f3560
gh-102956: Fix returning of empty byte strings after seek in zipfile … ( #103565 )
...
gh-102956: Fix returning of empty byte strings after seek in zipfile module. This was a regression in 3.12.0 due to a performance enhancement.
2023-10-24 21:15:42 +00:00
Brandt Bucher
e5168ff3f8
GH-109214: _SET_IP before _PUSH_FRAME (but not _POP_FRAME) (GH-111001)
2023-10-24 13:27:42 -07:00
InSync
c0ea67dd0d
GH-111182: Update EnumType.__contains__ docs (GH-111184)
2023-10-24 10:30:13 -07:00
Jochen Sprickerhof
46407fe79c
gh-109017: Use non alternate name for Kyiv (GH-109251)
...
tzdata provides Kiev as an alternative to Kyiv:
https://sources.debian.org/src/tzdata/2023c-10/backward/?hl=314#L314
But Debian moved it to the tzdata-legacy package breaking the test:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050530
This patch switches to the name provided by tzdata.
Also check that the new name is actually available.
2023-10-24 20:11:51 +03:00
Zachary Ware
c7d68f907a
Revert "Fix a code snippet typo in asyncio docs ( #108427 )" (GH-111271)
...
This reverts commit 7f31676340
.
The change resulted in a tautology and should not have been made. There
may be an opportunity for additional clarity in this section, but this
change wasn't it :)
Ref: https://github.com/python/cpython/pull/108427#issuecomment-1777525740
2023-10-24 11:09:13 -05:00
InSync
1198076447
gh-111151: Convert monospaced directives to :ref: ( #111152 )
2023-10-24 08:22:08 -07:00
Serhiy Storchaka
9bb202a1a9
gh-75666: Tkinter: add tests for binding (GH-111202)
2023-10-24 13:02:12 +03:00
Serhiy Storchaka
b8c20f9049
gh-97928: Change the behavior of tkinter.Text.count() (GH-98484)
...
It now always returns an integer if one or less counting options are specified.
Previously it could return a single count as a 1-tuple, an integer (only if
option "update" was specified) or None if no items found.
The result is now the same if wantobjects is set to 0.
2023-10-24 12:59:19 +03:00
Michael Droettboom
81eba76450
gh-110019: Refactor summarize_stats (GH-110398)
2023-10-24 09:57:39 +01:00
James Tocknell
6b9babf140
Fix typo in sys docs ( #111196 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-10-24 11:03:35 +03:00