Skip to content

Conversation

bdraco
Copy link
Owner

@bdraco bdraco commented Jul 18, 2024

-test perf-

serhiy-storchaka and others added 30 commits August 6, 2024 12:45
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
)

The free-threaded build partially stores heap type reference counts in
distributed manner in per-thread arrays. This avoids reference count
contention when creating or destroying instances.

Co-authored-by: Ken Jin <[email protected]>
Fix PyEval_GetLocals() to avoid SystemError ("bad argument to
internal function"). Don't redefine the 'ret' variable in the if
block.

Add an unit test on PyEval_GetLocals().
…SHES in configure.ac (python#122572)

The redefinition in confdefs.h can cause issues with the
AX_CHECK_COMPILE_FLAG macro.
…n#122368)

Rename `pathlib.Path.rmtree()` to `delete()`, and add support for deleting
non-directories. This simplifies the interface for users, and nicely
complements the upcoming `move()` and `copy()` methods (which will also
accept any type of file.)
…ificates (pythonGH-91740)

An error in one certificate should not cause the whole thing to fail.

Co-authored-by: Serhiy Storchaka <[email protected]>
`_PyDict_SetItem_Take2` steals both the key (i.e., `sub`) and the value.
python#122748)

This automatically spills the results from `_PyStackRef_FromPyObjectNew`
to the in-memory stack so that the deferred references are visible to
the GC before we make any possibly escaping call.

Co-authored-by: Ken Jin <[email protected]>
…pythonGH-122799)

* Test warning messages.
* Test stack level for re.compile() and re.findall().
…onGH-122528)

Frames of methods in code and codeop modules was show with non-default
sys.excepthook.

Save correct tracebacks in sys.last_traceback and update __traceback__
attribute of sys.last_value and sys.last_exc.
…eyword (pythonGH-122664)

Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for
positional-or-keyword parameter is passed by keyword.
There was only one such case in the stdlib -- the TypeVar constructor.
Return -1 and set an exception on error; return 0 if the iterator is
exhausted, and return 1 if the next item was fetched successfully.

Prefer this API to PyIter_Next(), which requires the caller to use
PyErr_Occurred() to differentiate between iterator exhaustion and errors.

Co-authered-by: Irit Katriel <[email protected]>
They are similar to white box tests for pythongh-86298 in test_importlib.
JuanFKurucz and others added 15 commits August 8, 2024 09:19
* Add Lib/test/test_capi/test_eval.py
* Add Modules/_testlimitedcapi/eval.c
…122703)

We were not properly accounting for interpreter memory leaks at
shutdown and had two sources of leaks:

 * Objects that use deferred reference counting and were reachable via
   static types outlive the final GC. We now disable deferred reference
   counting on all objects if we are calling the GC due to interpreter
   shutdown.

 * `_PyMem_FreeDelayed` did not properly check for interpreter shutdown
   so we had some memory blocks that were enqueued to be freed, but
   never actually freed.

 * `_PyType_FinalizeIdPool` wasn't called at interpreter shutdown.
…ble-safety`` and ``--enable-slower-safety``) (python#122758)

Co-authored-by: Adam Turner <[email protected]>
…python#122716)

As now building Python now requires support of IEEE 754 floating point
numbers.
…Clinic (pythonGH-122689)

* Parameters after the var-positional parameter are now keyword-only
  instead of positional-or-keyword.
* Correctly calculate min_kw_only.
* Raise errors for invalid combinations of the var-positional parameter
  with "*", "/" and deprecation markers.
)

This reverts commit dcc028d and
commit 6c54e5d.

Keep the deprecated logging warn() method in Python 3.13.

Co-authored-by: Gregory P. Smith <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
…hon#122870)

* Docs: Add lower bounds for sphinxcontrib dependencies

* oops
@bdraco
Copy link
Owner Author

bdraco commented Aug 10, 2024

replaced with #5

@bdraco bdraco deleted the ready branch August 10, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.