forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Try to improve the performance of run_once #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…ython#122737) Co-authored-by: Alex Waygood <[email protected]>
) 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]>
Co-authored-by: Pradyun Gedam <[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.)
Co-authored-by: Alex Waygood <[email protected]>
…ificates (pythonGH-91740) An error in one certificate should not cause the whole thing to fail. Co-authored-by: Serhiy Storchaka <[email protected]>
…ts inside a mutually exclusive groups (pythonGH-121159)
`_PyDict_SetItem_Take2` steals both the key (i.e., `sub`) and the value.
…/immutable types (python#122512) Co-authored-by: Adam Turner <[email protected]>
* ``-P``: safe path (https://docs.python.org/3/using/cmdline.html#cmdoption-P) * ``-R``: hash randomization (https://docs.python.org/3/using/cmdline.html#cmdoption-R)
…pe implementation (pythonGH-122047)
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().
Co-authored-by: Adam Turner <[email protected]>
…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.
* 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]>
…honGH-122602) Co-authored-by: Éric <[email protected]>
…ON (python#122764) (LIBPYTHON was renamed MODULE_LDFLAGS in commit 7f5e3f0.)
…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
replaced with #5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-test perf-