summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* gh-102304: Rename _Py_IncRefTotal_DO_NOT_USE_THIS() (#107193)Victor Stinner2023-07-242-11/+6
| | | | | * Rename _Py_IncRefTotal_DO_NOT_USE_THIS() to _Py_INCREF_IncRefTotal() * Rename _Py_DecRefTotal_DO_NOT_USE_THIS() to _Py_DECREF_DecRefTotal() * Remove temporary _Py_INC_REFTOTAL() and _Py_DEC_REFTOTAL() macros
* gh-98608: Move PyInterpreterConfig to pylifecycle.h (#107191)Victor Stinner2023-07-242-39/+39
| | | | | Move PyInterpreterConfig structure and associated macros from initconfig.h to pylifecycle.h: it's not related to the Python Initialization Configuration.
* gh-104050: Argument Clinic: annotate `main()` (#107192)Alex Waygood2023-07-241-4/+5
|
* GH-96803: Move PyUnstable_InterpreterFrame_GetCode() to Python.h (#107188)Victor Stinner2023-07-242-17/+17
| | | | | Declare the following 3 PyUnstable functions in Include/cpython/pyframe.h rather than Include/cpython/frameobject.h, so they are now provided by the standard "#include <Python.h>".
* gh-106368: Increase Argument Clinic CLI test coverage (#107156)Erlend E. Aasland2023-07-241-14/+176
| | | | | | Instead of hacking into the Clinic class, use the Argument Clinic tool to run the ClinicExternalTest test suite. Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* gh-106320: Remove private _PyMem API (#107187)Victor Stinner2023-07-248-35/+38
| | | | | | | | | | | | | Move private _PyMem functions to the internal C API (pycore_pymem.h): * _PyMem_GetCurrentAllocatorName() * _PyMem_RawStrdup() * _PyMem_RawWcsdup() * _PyMem_Strdup() No longer export these functions. Move pymem_getallocatorsname() function from _testcapi to _testinternalcapi, since the API moved to the internal C API.
* gh-106320: Remove private _PyUnicode C API (#107185)Victor Stinner2023-07-242-36/+13
| | | | | | | | | | | | | | | Move private _PyUnicode functions to the internal C API (pycore_unicodeobject.h): * _PyUnicode_IsCaseIgnorable() * _PyUnicode_IsCased() * _PyUnicode_IsXidContinue() * _PyUnicode_IsXidStart() * _PyUnicode_ToFoldedFull() * _PyUnicode_ToLowerFull() * _PyUnicode_ToTitleFull() * _PyUnicode_ToUpperFull() No longer export these functions.
* Thoroughly refactor the cases generator (#107151)Guido van Rossum2023-07-247-1169/+1304
| | | | | | | | | | | | | | This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here. - analysis.py: `Analyzer` etc. - instructions.py: `Instruction` etc. - flags.py: `InstructionFlags`, `variable_used`, `variable_used_unspecialized` - formatting.py: `Formatter` etc. - Rename parser.py to parsing.py, to avoid conflict with stdlib parser.py - Blackify most things - Fix most mypy errors - Remove output filenames from Generator state, add them to `write_instructions()` etc. - Fix unit tests
* Docs: Add missing markup to Argument Clinic docs (#106876)Erlend E. Aasland2023-07-241-126/+143
| | | | Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-107162: Document errcode.h usage in its comment (#107177)Victor Stinner2023-07-241-9/+15
| | | Public and documented PyRun_InteractiveOneFlags() C API uses it.
* gh-106320: Remove private _PyDict C API (#107145)Victor Stinner2023-07-249-17/+33
| | | | | | | | | | | | | Move private _PyDict functions to the internal C API (pycore_dict.h): * _PyDict_Contains_KnownHash() * _PyDict_DebugMallocStats() * _PyDict_DelItemIf() * _PyDict_GetItemWithError() * _PyDict_HasOnlyStringKeys() * _PyDict_MaybeUntrack() * _PyDict_MergeEx() No longer export these functions.
* Fix PyVectorcall_Function doc versionadded (#107140)da-woods2023-07-241-1/+1
| | | | | The documentation implies that PyVectorcall_Function() was available in Python 3.8. This is half-true - it was available under a different name. I think it's clearer to set the "version added" to 3.9.
* Docs: Remove duplicate word in Argument Clinic howto heading (#107169)Hakan Celik2023-07-241-2/+2
|
* gh-107017: Change Chapter Strings to Texts in the Introduction chapter. ↵TommyUnreal2023-07-241-20/+20
| | | | | | (#107104) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106320: Remove private _PyObject C API (#107159)Victor Stinner2023-07-232-13/+10
| | | | | | | | | | | | | Move private _PyObject and private _PyType functions to the internal C API (pycore_object.h): * _PyObject_GetMethod() * _PyObject_IsAbstract() * _PyObject_NextNotImplemented() * _PyType_CalculateMetaclass() * _PyType_GetDocFromInternalDoc() * _PyType_GetTextSignatureFromInternalDoc() No longer export these functions.
* Docs: fix typo in os.pwrite docstring (#107087)Jérôme Carretero2023-07-232-4/+4
|
* gh-105291: Add link to migration guide for distutils (#107130)cLupus2023-07-231-1/+3
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-106948: Docs: Disable links for C standard library functions, OS utility ↵Erlend E. Aasland2023-07-2312-42/+59
| | | | | functions and system calls (#107062) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-106320: Remove _PyBytes_Join() C API (#107144)Victor Stinner2023-07-234-17/+22
| | | | | | | | | | | Move private _PyBytes functions to the internal C API (pycore_bytesobject.h): * _PyBytes_DecodeEscape() * _PyBytes_FormatEx() * _PyBytes_FromHex() * _PyBytes_Join() No longer export these functions.
* gh-106320: Remove private _PyObject C API (#107147)Victor Stinner2023-07-2312-112/+116
| | | | | | | | | | | | | | | | Move private debug _PyObject functions to the internal C API (pycore_object.h): * _PyDebugAllocatorStats() * _PyObject_CheckConsistency() * _PyObject_DebugTypeStats() * _PyObject_IsFreed() No longer export most of these functions, except of _PyObject_IsFreed(). Move test functions using _PyObject_IsFreed() from _testcapi to _testinternalcapi. check_pyobject_is_freed() test no longer catch _testcapi.error: the tested function cannot raise _testcapi.error.
* gh-106320: Remove _PyTuple_MaybeUntrack() C API (#107143)Victor Stinner2023-07-232-5/+2
| | | | Move _PyTuple_MaybeUntrack() and _PyTuple_DebugMallocStats() functions to the internal C API (pycore_tuple.h). No longer export these functions.
* gh-106320: Remove _PyIsSelectable_fd() C API (#107142)Victor Stinner2023-07-233-8/+8
| | | | Move _PyIsSelectable_fd() macro to the internal C API (pycore_fileutils.h).
* Remove superflous whitespaces in `layout.html`. (GH-107067)Ezio Melotti2023-07-231-4/+4
|
* gh-107122: Update what's news for dbm.*dbm.clear() method (gh-107135)Dong-hee Na2023-07-233-2/+9
|
* gh-107122: Add clear method to dbm.ndbm module (gh-107126)Dong-hee Na2023-07-236-1/+91
|
* gh-62519: Make pgettext search plurals when translation is not found (#107118)Tomas R2023-07-233-4/+12
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-107122: Add clear method to dbm.gdbm.module (gh-107127)Dong-hee Na2023-07-235-1/+77
|
* gh-107017: Analolgy to Pascal and C replaced. (#107025)TommyUnreal2023-07-231-2/+2
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-107091: Fix the use of some C domain roles (#107092)Serhiy Storchaka2023-07-2311-20/+20
|
* gh-106186: Don't report MultipartInvariantViolationDefect for valid ↵htsedebenham2023-07-234-1/+28
| | | | multipart emails when parsing header only (#107016)
* bpo-18319: gettext() can retrieve a message even if a plural form exists ↵Gilles Bassière2023-07-233-4/+12
| | | | (#19869)
* gh-106996: Add the basics of a turtle graphics tutorial (#107072)Daniele Procida2023-07-232-26/+134
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106976: alphabetise bullets by module name task2-3 (#107005)littlebutt's workshop2023-07-231-237/+237
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix some broken sphinx references (#107095)wulmer2023-07-2312-34/+27
|
* gh-54738: Add argparse i18n howto (#104562)Tomas R2023-07-233-0/+55
|
* gh-71261: Add paragraph on shadowing submodules with star imports (#107004)wulmer2023-07-231-0/+16
|
* gh-107017: removed mention that C does it the same way (#107020)Jakub Červinka2023-07-231-8/+15
|
* gh-102111: Add link to string escape sequences in re module (#106995)wulmer2023-07-232-2/+6
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>