summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-77782: Deprecate Py_HasFileSystemDefaultEncoding (#106272)Victor Stinner2023-06-302-1/+2
| | | Deprecate Py_HasFileSystemDefaultEncoding variable.
* gh-106023: Remove _PyObject_FastCall() function (#106265)Victor Stinner2023-06-307-51/+13
|
* Remove private _PyCodec_Lookup() function (#106269)Victor Stinner2023-06-309-97/+87
| | | | | | | | | | | | | | | Remove the following private functions of the C API: * _PyCodecInfo_GetIncrementalDecoder() * _PyCodecInfo_GetIncrementalEncoder() * _PyCodec_DecodeText() * _PyCodec_EncodeText() * _PyCodec_Forget() * _PyCodec_Lookup() * _PyCodec_LookupTextEncoding() Move these functions to a new pycore_codecs.h internal header file. These functions are no longer exported.
* gh-106023: Rename _PyObject_FastCallDictTstate() (#106264)Victor Stinner2023-06-302-9/+10
| | | | Rename _PyObject_FastCallDictTstate() to _PyObject_VectorcallDictTstate().
* gh-106182: sys: Intern getfilesystemencoding() and ↵Inada Naoki2023-06-302-5/+27
| | | | | getfilesystemencodeerrors() (#106183) sys: Intern getfilesystemencoding() and getfilesystemencodeerrors()
* fix typos (#106247)Inada Naoki2023-06-308-12/+12
| | | Most typos are in comments, but two typos are in docstring.
* gh-106023: Remove _PY_FASTCALL_SMALL_STACK constant (#106258)Victor Stinner2023-06-302-13/+12
| | | | Remove _PY_FASTCALL_SMALL_STACK constant from the C API: move it to the internal C API (pycore_call.h).
* gh-106023: Update code using _PyObject_FastCall() (#106257)Victor Stinner2023-06-3010-453/+434
| | | Replace _PyObject_FastCall() calls with PyObject_Vectorcall().
* gh-106210 Remove Emscripten import trampoline (#106211)Hood Chatham2023-06-304-19/+4
| | | | | It's no longer necessary. Co-authored-by: Brett Cannon <brett@python.org>
* GH-106152: Add PY_THROW event to cProfile (GH-106161)Tian Gao2023-06-293-0/+22
|
* GH-106008: Make implicit boolean conversions explicit (GH-106003)Brandt Bucher2023-06-2920-1145/+1721
|
* GH-106250: Support insts using one cache entry and no oparg (GH-106252)Guido van Rossum2023-06-291-18/+18
|
* gh-105775: Convert LOAD_CLOSURE to a pseudo-op (#106059)hms2023-06-2916-702/+733
| | | | | | This enables super-instruction formation, removal of checks for uninitialized variables, and frees up an instruction.
* Fix possible refleak in CodeType.replace() (GH-106243)Serhiy Storchaka2023-06-291-0/+1
| | | A reference to c_code was leaked if PySys_Audit() failed.
* gh-106078: Convert `_decimal` types to heap types (#106079)Charlie Zhao2023-06-293-390/+433
| | | | | | | | | | | | | | - Establish global state struct - Convert static types to heap types and add them to global state: * PyDecContextManager_Type * PyDecContext_Type * PyDecSignalDictMixin_Type * PyDec_Type - Add to global state: * PyDecSignalDict_Type * DecimalTuple Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-89392: Make test_decimal discoverable (GH-106209)Serhiy Storchaka2023-06-291-133/+146
|
* gh-106033: Get rid of PyDict_GetItem in _PyFunction_FromConstructor (GH-106044)Serhiy Storchaka2023-06-291-4/+6
|
* gh-101006: Improve error handling when read marshal data (GH-101007)Serhiy Storchaka2023-06-292-61/+72
| | | | | | | | * EOFError no longer overrides other errors such as MemoryError or OSError at the start of the object. * Raise more relevant error when the NULL object occurs as a code object component. * Minimize an overhead of calling PyErr_Occurred().
* gh-106194: Rename duplicated tests in `test_curses` (#106196)Nikita Sobolev2023-06-281-4/+11
|
* GH-106214: Fix `test_opcache` to skip threaded tests on non-threaded ↵Hood Chatham2023-06-281-0/+2
| | | | | platforms (GH-106166) This skips the test added in GH-105953 on threadless builds.
* gh-104584: Emit macro expansions to opcode_metadata.h (#106163)Guido van Rossum2023-06-284-78/+153
| | | | | | | This produces longer traces (superblocks?). Also improved debug output (uop names are now printed instead of numeric opcodes). This would be simpler if the numeric opcode values were generated by generate_cases.py, but that's another project. Refactored some code in generate_cases.py so the essential algorithm for cache effects is only run once. (Deciding which effects are used and what the total cache size is, regardless of what's used.)
* gh-106197: Deduplicate tests in `test_buffer` (#106198)Nikita Sobolev2023-06-281-1/+1
|
* gh-101100: Fix reference to `parse_args` in `optparse.rst` (#105265)F3eQnxN3RriK2023-06-281-24/+27
|
* gh-106200: Remove unused imports (#106201)Nikita Sobolev2023-06-284-5/+0
|
* gh-106118: Add O_CLOEXEC preprocessor guard (#106120)Erlend E. Aasland2023-06-282-1/+6
|
* gh-101100: Fix reference to asynchronous methods (#106172)F3eQnxN3RriK2023-06-282-10/+10
|
* gh-105993: Add possible `None` return type to `asyncio.EventLoop.start_tls` ↵Sam Bull2023-06-281-0/+3
| | | | docs (#105995)
* gh-106162: fix test_array modifies warning filter (#106181)Inada Naoki2023-06-281-0/+1
|
* Refer to `TimeoutError` instead of `asyncio.TimeoutError` in ↵lightdrk2023-06-281-4/+4
| | | | | | `asyncio-task.rst` (#106136) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Fix c-analyzer for GCC: ignore LANG env var (#106173)Victor Stinner2023-06-281-1/+7
| | | | The c-analyzer doesn't support GCC localized messages, so just unset the LANG environment variable.
* GH-104584: Fix test_capi.test_counter_optimizer() when run twice (#106171)Victor Stinner2023-06-281-15/+24
| | | | | test_counter_optimizer() and test_long_loop() of test_capi now create a new function at each call. Otherwise, the optimizer counters are not the expected values when the test is run more than once.
* gh-101634: regrtest reports decoding error as failed test (#106169)Victor Stinner2023-06-283-1/+50
| | | | | When running the Python test suite with -jN option, if a worker stdout cannot be decoded from the locale encoding report a failed testn so the exitcode is non-zero.
* gh-106168: PyTuple_SET_ITEM() now checks the index (#106164)Victor Stinner2023-06-2810-23/+62
| | | | | | | | | | | | | PyTuple_SET_ITEM() and PyList_SET_ITEM() now check the index argument with an assertion if Python is built in debug mode or is built with assertions. * list_extend() and _PyList_AppendTakeRef() now set the list size before calling PyList_SET_ITEM(). * PyStructSequence_GetItem() and PyStructSequence_SetItem() now check the index argument: must be lesser than REAL_SIZE(op). * PyStructSequence_GET_ITEM() and PyStructSequence_SET_ITEM() are now aliases to PyStructSequence_GetItem() and PyStructSequence_SetItem().
* GH-106160: Fix test_gzip failing under WASI, which does not have zlib. (#106167)T. Wouters2023-06-281-1/+1
| | | | | Fix test_gzip's failure under WASI, which does not have zlib, by using test.support.import_helper.import_module to import zlib. (gzip unconditionally imports zlib, so this does not cause any new skips.)
* gh-106084: Remove _PyObject_CallMethod() function (#106159)Victor Stinner2023-06-279-85/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the following private functions from the public C API: * _Py_CheckFunctionResult() * _PyObject_CallMethod() * _PyObject_CallMethodId() * _PyObject_CallMethodIdNoArgs() * _PyObject_CallMethodIdObjArgs() * _PyObject_CallMethodIdOneArg() * _PyObject_MakeTpCall() * _PyObject_VectorcallMethodId() * _PyStack_AsDict() Move these functions to the internal C API (pycore_call.h). No longer export the following functions: * _PyObject_Call() * _PyObject_CallMethod() * _PyObject_CallMethodId() * _PyObject_CallMethodIdObjArgs() * _PyObject_Call_Prepend() * _PyObject_FastCallDictTstate() * _PyStack_AsDict() The following functions are still exported for stdlib shared extensions: * _Py_CheckFunctionResult() * _PyObject_MakeTpCall() Mark the following internal functions as extern: * _PyStack_UnpackDict() * _PyStack_UnpackDict_Free() * _PyStack_UnpackDict_FreeNoDecRef()
* gh-104584: Change DEOPT_IF in uops executor (#106146)Guido van Rossum2023-06-272-12/+7
| | | This effectively reverts bb578a0, restoring the original DEOPT_IF() macro in ceval_macros.h, and redefining it in the Tier 2 interpreter. We can get rid of the PREDICTED() macros there as well!
* gh-106149: move jump target resolution from optimizer to assembler (#106150)Irit Katriel2023-06-275-105/+113
|
* IDLE: Condense run.main threading.Thread start. (#106125)Terry Jan Reedy2023-06-271-5/+6
| | | | Use daemon argument added in 3.3 and directly call .start. Remove now unused 'sockthread' name.
* gh-106140: Reorder some more fields to facilitate out-of-process inspection ↵Pablo Galindo Salgado2023-06-271-7/+8
| | | | (#106148)
* gh-106140: Reorder some fields to facilitate out-of-process inspection (#106143)Pablo Galindo Salgado2023-06-272-41/+52
| | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131)Guido van Rossum2023-06-271-1/+2
|
* gh-104584: Add #line directives to executor_cases.c.h (#106126)Guido van Rossum2023-06-272-1/+255
|
* gh-92788: Add docs for `ast.Module`, `ast.Expression`, and others (#101055)Nikita Sobolev2023-06-271-0/+101
|
* GH-105774: Clarify operation of normalize() (GH-106093)Raymond Hettinger2023-06-271-6/+37
|
* gh-106123: Modules/_sha3 appears to no longer be necessary (#106124)Skip Montanaro2023-06-272-2/+0
|
* gh-104584: Baby steps towards generating and executing traces (#105924)Guido van Rossum2023-06-2721-305/+2559
| | | | | Added a new, experimental, tracing optimizer and interpreter (a.k.a. "tier 2"). This currently pessimizes, so don't use yet -- this is infrastructure so we can experiment with optimizing passes. To enable it, pass ``-Xuops`` or set ``PYTHONUOPS=1``. To get debug output, set ``PYTHONUOPSDEBUG=N`` where ``N`` is a debug level (0-4, where 0 is no debug output and 4 is excessively verbose). All of this code is likely to change dramatically before the 3.13 feature freeze. But this is a first step.
* Revert "GH-96145: Add AttrDict to JSON module for use with object_hook ↵Łukasz Langa2023-06-266-248/+2
| | | | | (#96146)" (#105948) This reverts commit 1f0eafa844bf5a380603d55e8d4b42d8c2a3439d.
* gh-106107: document correct error that's raised when a mutable default value ↵Roderich Schupp2023-06-261-1/+1
| | | | for a field is detected (gh-106109)
* GH-105793: Add follow_symlinks argument to `pathlib.Path.is_dir()` and ↵Barney Gale2023-06-265-18/+59
| | | | | | | `is_file()` (GH-105794) Brings `pathlib.Path.is_dir()` and `in line with `os.DirEntry.is_dir()`, which will be important for implementing generic path walking and globbing. Likewise `is_file()`.
* gh-106111: Remove zipapp documentation on creating a Windows executable ↵Paul Moore2023-06-261-106/+9
| | | | | (#106112) Remove zipapp documentation on creating a Windows executable