Nikita Sobolev
124259f9b3
gh-111132: Fix crash on interactive_filename in `run_mod` ( #111136 )
2023-10-20 21:31:26 +01:00
Victor Stinner
37e4e20eaa
gh-111089: Use PyUnicode_AsUTF8() in sqlite3 ( #111122 )
...
PyUnicode_AsUTF8() now raises an exception if the string contains
embedded null characters.
2023-10-20 20:04:27 +02:00
Nikita Sobolev
ea7c26e4b8
gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` ( #111127 )
2023-10-20 18:03:32 +00:00
Victor Stinner
f1e751e933
gh-111089: PyUnicode_AsUTF8AndSize() sets size on error ( #111106 )
...
On error, PyUnicode_AsUTF8AndSize() now sets the size argument to -1,
to avoid undefined value.
2023-10-20 20:03:11 +02:00
Victor Stinner
d8f32be5b6
gh-111089: Add PyUnicode_AsUTF8() to the limited C API ( #111121 )
...
Add PyUnicode_AsUTF8() function to the limited C API.
multiprocessing posixshmem now uses PyUnicode_AsUTF8() instead of
PyUnicode_AsUTF8AndSize(): the extension is built with the limited C
API. The function now raises an exception if the filename contains an
embedded null character instead of truncating silently the filename.
2023-10-20 19:29:27 +02:00
Sam Gross
264f4af506
gh-111119: Fix flaky test test_lock_two_threads (gh-111124)
2023-10-20 16:51:34 +00:00
Serhiy Storchaka
cb4f7462d1
gh-110093: Partially revert previous change in socketmodule.c (GH-111120)
2023-10-20 19:39:45 +03:00
Victor Stinner
d731579bfb
gh-111089: PyUnicode_AsUTF8() now raises on embedded NUL ( #111091 )
...
* PyUnicode_AsUTF8() now raises an exception if the string contains
embedded null characters.
* Update related C API tests (test_capi.test_unicode).
* type_new_set_doc() uses PyUnicode_AsUTF8AndSize() to silently
truncate doc containing null bytes.
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-10-20 17:59:29 +02:00
Serhiy Storchaka
59ea0f523e
gh-110093: Replace trivial Py_BuildValue() with direct C API call (GH-110094)
2023-10-20 18:08:41 +03:00
Serhiy Storchaka
ff4e53cb74
Synchronize test_contextlib with test_contextlib_async (GH-111000)
2023-10-20 17:07:14 +03:00
Tamás Hegedűs
11312eae6e
gh-110913: Fix WindowsConsoleIO chunking of UTF-8 text (GH-111007)
2023-10-20 12:52:31 +01:00
Serhiy Storchaka
b60f058708
Add tests for failing PyUnicode_AsUTF8AndSize() with psize=NULL (GH-111100)
2023-10-20 12:54:00 +03:00
Hugo van Kemenade
c42c68aa7b
gh-101100: Fix Sphinx warnings in `library/tty.rst` ( #111079 )
...
Fix Sphinx warnings in library/tty.rst
2023-10-20 07:33:17 +03:00
Terry Jan Reedy
b802882fb2
gh-111092: Make turtledemo run without default root enabled ( #111093 )
...
Add missing 'root' argument to PanedWindow call.
Other root children already have it.
2023-10-19 23:58:41 -04:00
Victor Stinner
8d234cd315
gh-85283: Build posixshmem extension with Limited C API ( #111087 )
...
Build the _multiprocessing.posixshmem extension with the Limited C
API.
* Add <errno.h> include.
* Replace PyUnicode_AsUTF8() with PyUnicode_AsUTF8AndSize().
2023-10-20 00:23:49 +02:00
Furkan Onder
9376728ce4
gh-67565: Add tests for C-contiguity checks (GH-110951)
2023-10-20 01:09:57 +03:00
sc07kvm
677d4bc15e
Remove unnecessary while in SocketIO.readinto (GH-111057)
...
It is unnecessary after removing "continue" in 6e6c59b
(bpo-42357).
2023-10-20 00:26:30 +03:00
Ned Batchelder
c9aef19cbf
add 3.13 as an option on the bug form ( #111083 )
2023-10-19 17:52:56 +01:00
Unique-Usman
bcc941bd4a
gh-109510: Clearly explain "Which Docstrings Are Examined" ( #109696 )
...
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-10-19 18:10:06 +03:00
Adam Turner
63acf78d71
GH-101100: Fix reference warnings for ``__enter__`` and ``__exit__`` ( #110112 )
2023-10-19 18:05:17 +03:00
Adam Turner
da99133710
GH-101100: Fix reference warnings for ``__getitem__`` ( #110118 )
2023-10-19 18:05:05 +03:00
Nikita Sobolev
d144749914
gh-101100: Fix sphinx warnings in `library/getpass.rst` ( #110461 )
2023-10-19 18:04:29 +03:00
Eric Snow
d23a2f9887
gh-76785: Make interpreters.*Channel Objects Shareable (gh-110607)
...
This restores their shareability, which was disabled by gh-110318 due to ref leaks.
2023-10-19 08:52:02 -06:00
Eric Snow
6741d5af32
gh-76785: Add *Channel.is_closed (gh-110606)
2023-10-19 08:51:21 -06:00
Nikita Sobolev
a89708aeea
gh-101100: Fix sphinx warnings in `library/codecs.rst` ( #110979 )
2023-10-19 17:20:52 +03:00
Nikita Sobolev
e9b5399bee
gh-111031: Check more files in `test_tokenize` ( #111032 )
2023-10-19 09:29:45 +01:00
Terry Jan Reedy
642eb8df95
gh-111050: IDLE - Simplify configdialog.HighPage.theme_elements ( #111053 )
...
Replace tuple value with internal name, removing numbers.
Remove sorting of already ordered dislay names.
Remove '[0]' indexing into now-gone tuple.
2023-10-19 00:03:24 -04:00
Tian Gao
1991694117
GH-103082: Clean up the sys.monitoring docs (GH-110532)
2023-10-18 16:15:42 -07:00
Nikita Sobolev
94495d0387
Fix a misspelling of Interpeter -> Interpreter (GH-111040)
2023-10-18 15:09:45 -07:00
Tian Gao
d9246c7b73
GH-104232: Fix statement about trace return values (GH-110516)
2023-10-18 13:24:00 -07:00
Tian Gao
e6eb8cafca
GH-102895 Add an option local_exit in code.interact to block exit() from terminating the whole process (GH-102896)
2023-10-18 11:36:43 -07:00
Joshua Root
cb1bf89c40
gh-111015: Install IDLE.app and Python Launcher.app on macOS with correct permissions (gh-111016)
...
Co-authored-by: Ned Deily <nad@python.org>
2023-10-18 14:02:36 +01:00
Shantanu
3156d193b8
gh-100445: Improve error message for unterminated strings with escapes ( #100446 )
2023-10-18 13:58:51 +01:00
Terry Jan Reedy
baefbb21d9
gh-103737: IDLE - Remove unneeded .keys() for dict iteration ( #110960 )
...
Add comments where .keys() is needed.
Leave debugger usages along because situation is unclear as indicated in expanded comment.
Most testing is manual.
2023-10-18 04:14:52 -04:00
James
77dbd95609
gh-111019: Align expected and actual titles in test output ( #111020 )
...
Align expected and actual titles in output from
assert_has_calls/assert_called_with for greater readability
2023-10-18 08:36:16 +01:00
Charles Machalow
738574fb21
gh-108747: Add unit tests for site.{usercustomize,sitecustomize} hooks ( #109470 )
2023-10-17 22:05:41 -07:00
Nikita Sobolev
220bcc9e27
gh-110938: More syntax tests for PEP695 funcs and classes ( #110986 )
2023-10-17 22:00:04 -07:00
Hugo van Kemenade
411d6a638e
gh-109975: What's new in 3.13: longer full support ( #110997 )
2023-10-17 21:42:28 -07:00
Bar Harel
7025844f4c
gh-110961: Fixed asyncio.wait docstring to remove deprecated coroutine reference ( #111017 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2023-10-18 04:40:26 +00:00
Victor Stinner
e7ae43ad7d
Regen Doc/requirements-oldest-sphinx.txt ( #111012 )
...
Fix https://github.com/python/cpython/security/dependabot/4 : use
urllib3 version 2.0.7.
2023-10-18 07:21:35 +03:00
Eric Snow
a77fa05124
gh-76785: Clean Up the Channels Module (gh-110568)
2023-10-17 23:51:52 +00:00
Victor Stinner
73a003f646
gh-85283: Build _uuid extension with limited C API ( #111010 )
2023-10-17 23:07:12 +00:00
Eric Snow
c58c63fdf6
gh-84570: Add Timeouts to SendChannel.send() and RecvChannel.recv() (gh-110567)
2023-10-17 23:05:49 +00:00
Victor Stinner
7029c1a1c5
gh-85283: Build _scproxy extension with limited C API ( #111008 )
...
* Replace Py_SETREF(v, NULL) with Py_CLEAR(v).
* Reformat the code.
2023-10-17 22:32:53 +00:00
Eric Snow
a53d7cb672
gh-84570: Send-Wait Fixes for _xxinterpchannels (gh-111006)
...
There were a few things I did in gh-110565 that need to be fixed. I also forgot to add tests in that PR.
(Note that this PR exposes a refleak introduced by gh-110246. I'll take care of that separately.)
2023-10-17 16:32:00 -06:00
Victor Stinner
e37620edfd
gh-85283: Build resource extension with limited C API ( #110989 )
...
* Replace PyStructSequence_SET_ITEM() with
PyStructSequence_SetItem().
* Replace PyTuple_GET_SIZE() with PyTuple_Size().
* Replace PyTuple_GET_ITEM() with PyTuple_GetItem().
2023-10-17 23:52:58 +02:00
Victor Stinner
2ba6f68890
gh-85283: Fix _ctypes_test build on Windows in release mode ( #111005 )
...
Define Py_BUILD_CORE to not attempt to link the extension to
python3.lib (which fails).
2023-10-17 23:45:24 +02:00
Nikita Sobolev
0f9d0fb437
Add `.ruff_cache/` to `.gitignore` ( #110983 )
2023-10-17 21:12:58 +01:00
Victor Stinner
920b3dfaca
gh-110995: Fix test_gdb check_usable_gdb() ( #110998 )
...
Fix detection of gdb built without Python scripting support.
* check_usable_gdb() doesn't check gdb exit code when calling
run_gdb().
* Use shutil.which() to get the path to the gdb program.
2023-10-17 20:19:14 +02:00
Donghee Na
2dcc57008b
gh-109693: Remove pycore_atomic.h (gh-110992)
2023-10-18 00:33:50 +09:00