cpython
cpython copied to clipboard
The Python programming language
This is a manual rebase of https://github.com/python/cpython/pull/93221. * Issue: gh-91095
BPO | [46939](https://bugs.python.org/issue46939) --- | :--- Nosy | @markshannon, @brandtbucher, @Fidget-Spinner PRs | python/cpython#31707python/cpython#31936 *Note: these values reflect the state of the issue at the time it was migrated and...
I apologize for the mess that generate_cases.py has become. I promise I will clean it up in the _next_ PR. This PR is a big step forwards though -- it...
Hi, Currently (python 3.10.6 & 3.11.0): ```python from pathlib import Path p = Path('/var/log/../opt') p.is_relative_to('/var/log') >>> True p = p.resolve() p.is_relative_to('/var/log') >>> False ``` Once you know `is_relative_to` uses `relative_to`,...
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Objects/listobject.c. * Issue: gh-99300
I added Py_NewRef() and Py_XNewRef() to Python 3.10 C API. IMO using them make to code easier to read and make the code looks "more correct". Examples: (A) Assign +...
Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Objects/ directory. * Issue: gh-99300
* Issue: gh-99305
Add new triplets for loongarch64, please review, thanks! https://bugs.python.org/issue46498 https://bugs.python.org/issue46498 Signed-off-by: Zhang Na Reviewed-by: Wang Xuerui Reviewed-by: Wu Xiaotian Reviewed-by: Zhu Yaliang
`Modules/_testcapimodule.c` is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain. It also doesn't work well with testing (a) feature macros that affect `Python.h`...