summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-107298: Fix Sphinx warnings in the C API doc (#107302)Victor Stinner2023-07-2612-33/+26
| | | | * Update Doc/tools/.nitignore * Fix BufferedIOBase.write() link in buffer.rst
* gh-106149: fix comment on stackdepth of generators (#107321)Irit Katriel2023-07-261-2/+3
|
* Docs: Argument Clinic: Restructure "Basic concepts and usage" (#106981)Erlend E. Aasland2023-07-262-50/+142
| | | | | | | | | | | | | | Split "Basic concepts and usage" into: - Reference - Terminology - CLI reference - Background - Basic concepts Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Docs: Remove the numbered steps from the Argument Clinic tutorial (#107203)Erlend E. Aasland2023-07-261-314/+310
| | | | Instead, order the tutorial as one body of prose, making it easier to align the tutorial according to Diátaxis principles.
* gh-104050: Argument clinic: Annotate `str_converter_key()` (#107294)Alex Waygood2023-07-261-2/+6
|
* gh-104050: Argument clinic: Complete `get_destination_buffer` annotations ↵Alex Waygood2023-07-261-2/+2
| | | | (#107293)
* gh-105002: [pathlib] Fix relative_to with walk_up=True using ".." (#107014)János Kukovecz2023-07-263-2/+19
| | | | It makes sense to raise an Error because ".." can not be resolved and the current working directory is unknown.
* gh-107091: Fix some uses of :c:type: role (GH-107138)Serhiy Storchaka2023-07-269-22/+28
|
* gh-107091: Fix some uses of :c:member: role (GH-107129)Serhiy Storchaka2023-07-268-14/+16
|
* Document that `os.link()` is not available on Emscripten (GH-104822)Roman Yurchak2023-07-261-1/+1
|
* gh-107298: Fix doc references to undocumented modules (#107300)Victor Stinner2023-07-268-13/+11
| | | Update also Doc/tools/.nitignore.
* gh-106948: Update documentation nitpick_ignore for c:identifer domain (#107295)Victor Stinner2023-07-262-3/+9
| | | | | | | | | | | Update the nitpick_ignore of the documentation configuration to fix Sphinx warnings about standard C types when declaring functions with the "c:function" markups. Copy standard C types declared in the "c:type" domain to the "c:identifier" domain, since "c:function" markup looks for types in the "c:identifier" domain. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107015: Remove async_hacks from the tokenizer (#107018)Pablo Galindo Salgado2023-07-2620-499/+404
|
* gh-106149: Simplify stack depth calculation. Replace asserts by exceptions. ↵Irit Katriel2023-07-264-42/+91
| | | | (#107255)
* gh-104683: Argument Clinic: Make most arguments to `Class` and `Function` ↵Alex Waygood2023-07-261-15/+10
| | | | required (#107289)
* gh-104050: Argument clinic: improve typing around `parse_arg()` methods ↵Alex Waygood2023-07-261-24/+24
| | | | (#107288)
* gh-103735: Tkinter: remove handling for uninteresting "procbody" Tcl value ↵Christopher Chavez2023-07-261-6/+0
| | | | type (GH-103736)
* gh-106368: Increase Argument Clinic CLI test coverage (#107277)Erlend E. Aasland2023-07-261-3/+75
|
* gh-104050: Argument clinic: annotate `post_parsing()` and `cleanup()` (#107225)Alex Waygood2023-07-251-3/+7
|
* gh-106939: document ShareableList nul-strip quirk. (#107266)Gregory P. Smith2023-07-251-7/+37
| | | | * gh-106939: document ShareableList nul-strip quirk. * Mention the `int` size constraint.
* gh-104050: Argument clinic: more misc typing improvements (#107264)Alex Waygood2023-07-251-6/+11
|
* gh-106185: Deduplicate `CPythonTracebackErrorCaretTests` in `test_traceback` ↵Nikita Sobolev2023-07-251-1/+1
| | | | (GH-106187)
* gh-107082: Fix instruction size computation for ENTER_EXECUTOR (#107256)Guido van Rossum2023-07-251-0/+7
| | | | Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-107226: PyModule_AddObjectRef() should only be in the limited API 3.10 ↵Serhiy Storchaka2023-07-252-0/+4
| | | | (GH-107227)
* gh-106350: Tkinter: do not ignore return value of `mp_init()` (GH-106351)Christopher Chavez2023-07-252-2/+5
|
* gh-106004: PyDict_GetItemRef() should only be in the limited API 3.13 ↵Serhiy Storchaka2023-07-251-0/+2
| | | | (GH-107229)
* gh-107249: Implement Py_UNUSED() for MSVC (#107250)Victor Stinner2023-07-252-0/+11
| | | | | | | | | | | | | | | | | Fix warnings C4100 in Py_UNUSED() when Python is built with "cl /W4". Example with this function included by Python.h: static inline unsigned int PyUnicode_IS_READY(PyObject* Py_UNUSED(op)) { return 1; } Without this change, building a C program with "cl /W4" which just includes Python.h emits the warning: Include\cpython/unicodeobject.h(199): warning C4100: '_unused_op': unreferenced formal parameter This change fix this warning.
* gh-106739: Add `rtype_cache` to `warnings.warn` message when leaked objects ↵shailshouryya2023-07-252-3/+5
| | | | | | | | | | | | | | | | | | | | found (#106740) Adding the `rtype_cache` to the `warnings.warn` message improves the previous, somewhat vague message from ``` /Users/username/cpython/Lib/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown ``` to ``` /Users/username/cpython/Lib/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 6 leaked semaphore objects to clean up at shutdown: {'/mp-yor5cvj8', '/mp-10jx8eqr', '/mp-eobsx9tt', '/mp-0lml23vl', '/mp-9dgtsa_m', '/mp-frntyv4s'} ``` --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* Remove unused internal _PyImport_GetModuleId() function (#107235)Victor Stinner2023-07-252-12/+0
|
* gh-105059: Fix MSCV compiler warning on PyObject union (#107239)Victor Stinner2023-07-251-0/+11
| | | | Use pragma to ignore the MSCV compiler warning on the PyObject nameless union.
* gh-106869: Use new PyMemberDef constant names (#106871)Victor Stinner2023-07-2578-464/+472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove '#include "structmember.h"'. * If needed, add <stddef.h> to get offsetof() function. * Update Parser/asdl_c.py to regenerate Python/Python-ast.c. * Replace: * T_SHORT => Py_T_SHORT * T_INT => Py_T_INT * T_LONG => Py_T_LONG * T_FLOAT => Py_T_FLOAT * T_DOUBLE => Py_T_DOUBLE * T_STRING => Py_T_STRING * T_OBJECT => _Py_T_OBJECT * T_CHAR => Py_T_CHAR * T_BYTE => Py_T_BYTE * T_UBYTE => Py_T_UBYTE * T_USHORT => Py_T_USHORT * T_UINT => Py_T_UINT * T_ULONG => Py_T_ULONG * T_STRING_INPLACE => Py_T_STRING_INPLACE * T_BOOL => Py_T_BOOL * T_OBJECT_EX => Py_T_OBJECT_EX * T_LONGLONG => Py_T_LONGLONG * T_ULONGLONG => Py_T_ULONGLONG * T_PYSSIZET => Py_T_PYSSIZET * T_NONE => _Py_T_NONE * READONLY => Py_READONLY * PY_AUDIT_READ => Py_AUDIT_READ * READ_RESTRICTED => Py_AUDIT_READ * PY_WRITE_RESTRICTED => _Py_WRITE_RESTRICTED * RESTRICTED => (READ_RESTRICTED | _Py_WRITE_RESTRICTED)
* gh-107237: Fix test_udp_reconnection() of test_logging (#107238)Victor Stinner2023-07-252-4/+6
| | | | | | | test_logging: Fix test_udp_reconnection() by increasing the timeout from 100 ms to 5 minutes (LONG_TIMEOUT). Replace also blocking wait() with wait(LONG_TIMEOUT) in test_output() to prevent the test to hang.
* gh-105059: Use GCC/clang extension for PyObject union (#107232)Victor Stinner2023-07-251-0/+5
| | | | | Anonymous union is new in C11. To prevent compiler warning when using -pedantic compiler option, use Clang and GCC extension on C99 and older.
* gh-106996: Add a how-to section to the turtle documentation (#107153)Daniele Procida2023-07-251-0/+114
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-86493: Modernize modules initialization code (GH-106858)Serhiy Storchaka2023-07-2529-292/+84
| | | | | Use PyModule_Add() or PyModule_AddObjectRef() instead of soft deprecated PyModule_AddObject().
* gh-106774: Update bundled pip version to 23.2.1 (#106775)Paul Moore2023-07-253-1/+2
| | | * Update bundled pip version to 23.2.1
* gh-104050: Argument clinic: more misc typing coverage improvements (#107210)Alex Waygood2023-07-251-11/+18
|
* gh-104050: Argument clinic: improve typing around adding C converters (#107209)Alex Waygood2023-07-251-7/+13
|
* gh-107211: No longer export internal variables (#107218)Victor Stinner2023-07-256-20/+26
| | | | | | | | | | | | | | | | No longer export these 5 internal C API variables: * _PyBufferWrapper_Type * _PyImport_FrozenBootstrap * _PyImport_FrozenStdlib * _PyImport_FrozenTest * _Py_SwappedOp Fix the definition of these internal functions, replace PyAPI_DATA() with PyAPI_FUNC(): * _PyImport_ClearExtension() * _PyObject_IsFreed() * _PyThreadState_GetCurrent()
* gh-107211: No longer export internal functions (4) (#107217)Victor Stinner2023-07-2513-15/+29
| | | | | | | | | No longer export these 2 internal C API functions: * _PyEval_SignalAsyncExc() * _PyEval_SignalReceived() Add also comments explaining why some internal functions have to be exported, and update existing comments.
* gh-107211: No longer export internal functions (3) (#107215)Victor Stinner2023-07-257-23/+30
| | | | | | | | | | | | | | | | | | No longer export these 14 internal C API functions: * _PySys_Audit() * _PySys_SetAttr() * _PyTraceBack_FromFrame() * _PyTraceBack_Print_Indented() * _PyUnicode_FormatAdvancedWriter() * _PyUnicode_ScanIdentifier() * _PyWarnings_Init() * _Py_DumpASCII() * _Py_DumpDecimal() * _Py_DumpHexadecimal() * _Py_DumpTraceback() * _Py_DumpTracebackThreads() * _Py_WriteIndent() * _Py_WriteIndentedMargin()
* gh-107211: No longer export internal functions (2) (#107214)Victor Stinner2023-07-2510-62/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer export these 43 internal C API functions: * _PyDict_CheckConsistency() * _PyErr_ChainStackItem() * _PyErr_CheckSignals() * _PyErr_CheckSignalsTstate() * _PyErr_Clear() * _PyErr_ExceptionMatches() * _PyErr_Fetch() * _PyErr_Format() * _PyErr_FormatFromCauseTstate() * _PyErr_GetExcInfo() * _PyErr_GetHandledException() * _PyErr_GetTopmostException() * _PyErr_NoMemory() * _PyErr_NormalizeException() * _PyErr_Restore() * _PyErr_SetHandledException() * _PyErr_SetNone() * _PyErr_SetObject() * _PyErr_SetString() * _PyErr_StackItemToExcInfoTuple() * _PyExc_CreateExceptionGroup() * _PyExc_PrepReraiseStar() * _PyException_AddNote() * _PyInterpreterState_Enable() * _PyLong_FormatAdvancedWriter() * _PyLong_FormatBytesWriter() * _PyLong_FormatWriter() * _PyMem_GetAllocatorName() * _PyMem_SetDefaultAllocator() * _PyMem_SetupAllocators() * _PyOS_InterruptOccurred() * _PyRuntimeState_Fini() * _PyRuntimeState_Init() * _PyRuntime_Finalize() * _PyRuntime_Initialize() * _PyThreadState_Bind() * _PyThreadState_DeleteExcept() * _PyThreadState_New() * _PyThreadState_Swap() * _PyType_CheckConsistency() * _PyUnicodeTranslateError_Create() * _Py_DumpExtensionModules() * _Py_FatalErrorFormat()
* gh-107211: No longer export internal functions (1) (#107213)Victor Stinner2023-07-2510-66/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No longer export these 49 internal C API functions: * _PyArgv_AsWstrList() * _PyCode_New() * _PyCode_Validate() * _PyFloat_DebugMallocStats() * _PyFloat_FormatAdvancedWriter() * _PyImport_CheckSubinterpIncompatibleExtensionAllowed() * _PyImport_ClearExtension() * _PyImport_GetModuleId() * _PyImport_SetModuleString() * _PyInterpreterState_IDDecref() * _PyInterpreterState_IDIncref() * _PyInterpreterState_IDInitref() * _PyInterpreterState_LookUpID() * _PyWideStringList_AsList() * _PyWideStringList_CheckConsistency() * _PyWideStringList_Clear() * _PyWideStringList_Copy() * _PyWideStringList_Extend() * _Py_ClearArgcArgv() * _Py_DecodeUTF8Ex() * _Py_DecodeUTF8_surrogateescape() * _Py_EncodeLocaleRaw() * _Py_EncodeUTF8Ex() * _Py_GetEnv() * _Py_GetForceASCII() * _Py_GetLocaleEncoding() * _Py_GetLocaleEncodingObject() * _Py_GetLocaleconvNumeric() * _Py_ResetForceASCII() * _Py_device_encoding() * _Py_dg_dtoa() * _Py_dg_freedtoa() * _Py_dg_strtod() * _Py_get_blocking() * _Py_get_env_flag() * _Py_get_inheritable() * _Py_get_osfhandle_noraise() * _Py_get_xoption() * _Py_open() * _Py_open_osfhandle() * _Py_open_osfhandle_noraise() * _Py_read() * _Py_set_blocking() * _Py_str_to_int() * _Py_wfopen() * _Py_wgetcwd() * _Py_wreadlink() * _Py_wrealpath() * _Py_write()
* gh-107211: Rename PySymtable_Lookup() to _PySymtable_Lookup() (#107212)Victor Stinner2023-07-253-4/+4
| | | | Rename the internal PySymtable_Lookup() function to _PySymtable_Lookup() and no longer export it.
* gh-104050: Argument Clinic: Annotate `CRenderData.__init__` (#107207)Alex Waygood2023-07-241-12/+12
| | | Argument Clinic: Annotate `CRenderData.__init__`
* gh-104050: Argument clinic: misc improvements to type annotation coverage ↵Alex Waygood2023-07-241-9/+15
| | | | (#107206)
* gh-106149: move _PyCfg_BasicblockLastInstr and make it local to flowgraph.c ↵Irit Katriel2023-07-242-36/+34
| | | | (#107180)
* gh-104050: Argument clinic: annotate `format_docstring()` (#107200)Alex Waygood2023-07-241-7/+9
|
* gh-106917: fix super classmethod calls to non-classmethods (#106977)Carl Meyer2023-07-245-5/+51
|
* gh-106727: Add `__module__` check for `inspect.getsource(cls)` (#106968)Tian Gao2023-07-242-1/+30
|