summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Update test.support.interpreters to include missing RunFailedError import ↵Bruce Eckel2023-06-261-1/+1
| | | | | (#103841) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-106084: Remove _PyObject_RealIsInstance() function (#106106)Victor Stinner2023-06-265-14/+15
| | | | | | | | | | | | | | | Remove the following functions from the public C API: * _PyObject_RealIsInstance() * _PyObject_RealIsSubclass() * _Py_add_one_to_index_F() * _Py_add_one_to_index_C() Move _PyObject_RealIsInstance() and _PyObject_RealIsSubclass() to the internal C API (pycore_abstract.h) and no longer export their symbols (in libpython). Make _Py_add_one_to_index_F() and _Py_add_one_to_index_C() functions static: no longer export them.
* gh-106084: Remove _PyObject_HasLen() function (#106103)Victor Stinner2023-06-264-22/+25
| | | | | | | | | Remove _PyObject_HasLen() and _PySequence_IterSearch() functions from the public C API: move them to the internal C API (pycore_abstract.h). No longer export these symbols (in libpython). Remove also unused pycore_initconfig.h include in typeobject.c.
* gh-105927: Deprecate PyWeakref_GetObject() function (#106006)Victor Stinner2023-06-267-4/+33
| | | Deprecate PyWeakref_GetObject() and PyWeakref_GET_OBJECT() functions.
* gh-104527: zippapp will now avoid appending an archive to itself. (gh-106076)Gabriel Venberg2023-06-262-1/+2
| | | zippapp will now avoid appending an archive to itself.
* gh-106075: add `asyncio.taskgroups.__all__` to `asyncio.__all__` (#106090)James Webber2023-06-264-1/+4
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* Improve typing docs on the type of class objects (#106081)Alex Waygood2023-06-261-49/+59
|
* gh-106084: Remove _PySequence_BytesToCharpArray() function (#106088)Victor Stinner2023-06-263-81/+82
| | | | | Remove private _PySequence_BytesToCharpArray() and _Py_FreeCharPArray() functions from the public C API: move these functions from Objects/abstract.c to Modules/_posixsubprocess.c.
* gh-106084: Remove old PyObject call aliases (#106085)Victor Stinner2023-06-2612-24/+42
| | | | | | | | | | | | | | Remove old aliases which were kept backwards compatibility with Python 3.8: * _PyObject_CallMethodNoArgs() * _PyObject_CallMethodOneArg() * _PyObject_CallOneArg() * _PyObject_FastCallDict() * _PyObject_Vectorcall() * _PyObject_VectorcallMethod() * _PyVectorcall_Function() Update code which used these aliases to use new names.
* gh-106046: Improve error message from `os.fspath` if `__fspath__` is set to ↵Alex Waygood2023-06-255-4/+52
| | | | `None` (#106082)
* Add end-of-file-fixer to pre-commit (#106065)Hugo van Kemenade2023-06-251-0/+3
|
* Docs: add links to 'callable' term in sqlite3 docs (#106072)Erlend E. Aasland2023-06-251-17/+18
|
* gh-106033: [docs] Improve C API GetItem & HasAttr notes. (#106047)Gregory P. Smith2023-06-242-14/+23
| | | | | Use a note:: tag so that these dict and object API deficiencies show up clearly. A caution:: tag was considered, but our current python docs rendering doesn't do much with that (no box or color change). warning:: seemed too extreme. note looks good.
* GH-104375: Use `versionchanged` to describe new arguments in pathlib docs ↵Barney Gale2023-06-241-14/+14
| | | | (GH-104376)
* gh-105987: Fix reference counting issue in `_asyncio._swap_current_task` ↵chgnrdv2023-06-243-4/+27
| | | | (#105989)
* gh-102251: Disable non-rerunnable test in test_import (#106013)Erlend E. Aasland2023-06-231-4/+20
|
* Typing docs: fix typo in annotating tuples comment (#106048)Eamon Tracey2023-06-231-2/+2
|
* gh-105730: support more callables in ExceptionGroup.split() and subgroup() ↵Irit Katriel2023-06-234-26/+59
| | | | (#106035)
* gh-106033: Get rid of new occurrences of PyDict_GetItem and PyObject_HasAttr ↵Serhiy Storchaka2023-06-235-31/+32
| | | | | | | | (GH-106034) These functions are broken by design because they discard any exceptions raised inside, including MemoryError and KeyboardInterrupt. They should not be used in new code.
* gh-105063: Disable test_peg_generator.TestCParser bco. ref leaks (#106024)Erlend E. Aasland2023-06-231-0/+10
| | | | Since gh-104798 (Use setuptools in peg-generator and reenable tests), the TestCParser test case has been producing ref leaks.
* gh-106030: Miscellaneous fixes in Python/suggestions.c (GH-106031)Serhiy Storchaka2023-06-231-15/+27
| | | | | | | | | | * PyDict_GetItem() and PyObject_HasAttr() suppress arbitrary errors and should not be used. * PyUnicode_CompareWithASCIIString() only works if the second argument is ASCII string. * Refleak in get_suggestions_for_name_error. * Use of borrowed pointer after possible freeing (self). * Add some missing error checks.
* gh-105974: Revert unintentional behaviour change for protocols with ↵Alex Waygood2023-06-233-32/+79
| | | | non-callable members and custom `__subclasshook__` methods (#105976)
* Typing docs: improve the guidance on annotating tuples (#106021)Alex Waygood2023-06-231-21/+72
|
* gh-85136: Remove disabled remote IMAP tests (#106022)Erlend E. Aasland2023-06-231-95/+0
| | | Tests had been disabled since Jun 12, 2020 (gh-20836).
* GH-106012: Fix monitoring of static code objects (GH-106017)Mark Shannon2023-06-231-13/+18
|
* Docs: Avoid a DeprecationWarning in `pyspecific.py` when running with Sphinx ↵Alex Waygood2023-06-231-11/+9
| | | | | >=6.1 (#105886) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-105927: Remove _PyWeakref_GetWeakrefCount() (#106007)Victor Stinner2023-06-234-22/+20
| | | | | | Remove _PyWeakref_GetWeakrefCount() and _PyWeakref_ClearRef() from the public C API: move them to the internal C API. Refactor also _weakref_getweakrefs() code to make it more readable.
* gh-105927: _ssl GET_SOCKET() uses _PyWeakref_GET_REF() (#106002)Victor Stinner2023-06-231-2/+12
|
* gh-105927: PyImport_AddModule() uses _PyWeakref_GET_REF() (#106001)Victor Stinner2023-06-221-3/+19
| | | | | | | It now raises an exception if sys.modules doesn't hold a strong reference to the module. Elaborate the comment explaining why a weak reference is used to create a borrowed reference.
* gh-105922: Use PyImport_AddModuleRef() function (#105999)Victor Stinner2023-06-222-3/+2
| | | | Replace PyImport_AddModuleObject() + Py_XNewRef() with PyImport_AddModuleRef() to get directly a strong reference.
* Test specialization's thread-safety (GH-105953)Brandt Bucher2023-06-221-1/+511
|
* gh-105979: Fix exception handling in `unmarshal_frozen_code` ↵chgnrdv2023-06-223-0/+10
| | | | (`Python/import.c`) (#105980)
* gh-105927: Avoid calling PyWeakref_GET_OBJECT() (#105997)Victor Stinner2023-06-223-7/+21
| | | | | | | * Replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF(). * _sqlite/blob.c now holds a strong reference to the blob object while calling close_blob(). * _xidregistry_find_type() now holds a strong reference to registered while using it.
* gh-105927: Add _PyWeakref_IS_DEAD() function (#105992)Victor Stinner2023-06-223-14/+30
| | | | | | | | * Add _PyWeakref_IS_DEAD() internal function. * Modify is_dead_weakref() of Modules/_weakref.c and _pysqlite_drop_unused_cursor_references() to replace PyWeakref_GET_OBJECT() with _PyWeakref_IS_DEAD(). * Replace "int i" with "Py_ssize_t i" to iterate on cursors in _pysqlite_drop_unused_cursor_references().
* gh-101538: Add experimental wasi-threads build (#101537)YAMAMOTO Takashi2023-06-225-3/+53
| | | | Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-98931: Add custom error messages to invalid import/from with multiple ↵Pablo Galindo Salgado2023-06-224-597/+738
| | | | | | targets (#105985) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-89812: Add `pathlib.UnsupportedOperation` (GH-105926)Barney Gale2023-06-225-13/+91
| | | | | | | This new exception type is raised instead of `NotImplementedError` when a path operation is not supported. It can be raised from `Path.readlink()`, `symlink_to()`, `hardlink_to()`, `owner()` and `group()`. In a future version of pathlib, it will be raised by `AbstractPath` for these methods and others, such as `AbstractPath.mkdir()` and `unlink()`.