cpython
cpython copied to clipboard
The Python programming language
Examples of the C API documentation should be updated to use the new PyConfig API, rather than deprecated functions like Py_SetProgramName(): * https://docs.python.org/dev/c-api/intro.html#embedding-python * https://docs.python.org/dev/extending/extending.html * https://docs.python.org/dev/extending/embedding.html In the intro,...
Part of #95914 (and in turn, #95913). As discussed with @erlend-aasland , adds an item to the C API -> Porting section of the Python 3.11 What's New document summarizing...
The test_sendfile_fallback_close_peer_in_the_middle_of_receiving test in test.test_asyncio.test_sendfile.SelectEventLoopTests fails with error “OSError: [Errno 41] Protocol wrong type for socket” intermittently on macOS. I have seen this error multiple times across Python 3.8-3.11rc1 CI...
… `PyFunction_GetModule` (GH-98158). (cherry picked from commit 7b48d02933639c91ebd957b2326d8c352d8eddec) Co-authored-by: Nikita Sobolev * Issue: gh-94808
(cherry picked from commit b7dd2cad186e44e2b481f4518be62f34c682ea59) Co-authored-by: Nikita Sobolev * Issue: gh-94808
BPO | [31176](https://bugs.python.org/issue31176) --- | :--- Nosy | @1st1, @twisteroidambassador *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the...
# DOC: Improvements in library/stdtypes This PR do: 1. Replace :meth: by :func: around repr function 2. Add links to Unicode Standard site 3. Make explicit "when" can call the...
Part of #95913 This applies the standard copyediting and formatting to the `inspect` section in the Python 3.11 What's New, as well as explicitly mentions/references the new `inspect.FrameInfo` objects. Specifically:...
The no-gui (mock Text) test_squeezer.SqueezerTest.test_write_stdout indirectly calls squeezer.Squeezer.mywrite, which calls macosx.isAquaTk, which calls _init_tk_type, which calls tkinter.Tk to initialize macosx._tk_type. When a test is run on macOS with no GUI,...
Purely for design purposes, do not review/merge. https://bugs.python.org/issue43950