cpython
cpython copied to clipboard
The Python programming language
# Feature or enhancement Reference (not how we'll do it, but a starting point): https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools-how-to-create We _ought_ to be able to make `dotnet tool install python` work with some metadata...
* Issue: gh-121237 The directive `%:z` was introduced in Python 3.12. It works as expected on `strftime` but fails on `strptime`, since it was not explicitely implemented there as a...
# Bug report ### Bug description: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes documents "**strftime() and strptime()** Format Codes". It mentions the new %:z variant of %z, introduced in Python 3.12 ```python >>> datetime.datetime.strptime("2023-07-17T13:58:49-07:00", "%Y-%m-%dT%H:%M:%S%z") datetime.datetime(2023,...
### Bug description: ```python In [25]: pickle.load(open('taskwarrior/f91b9e98-7586-4317-ae52-b516e97209e5', 'rb')) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[25], line 1 ----> 1 pickle.load(open('taskwarrior/f91b9e98-7586-4317-ae52-b516e97209e5', 'rb')) File /usr/lib/python3.13/copyreg.py:44, in _reconstructor(cls, base, state) 41...
This is a continuation of #128444. CPython requires C11, so all C99 features *should* work. We might need workaround if a supported platform misbehaves (hence this PR -- I want...
# Bug report ### Bug description: This is an issue to track the progress of fixing the JIT. Branches that trigger the embedded Linux tests fail on `test_strftime_y2k`, e.g. https://github.com/python/cpython/actions/runs/10655985897/job/29534232332?pr=123546....
# Bug report ### Bug description: I'm using [`coverage`](https://coverage.readthedocs.io/en/latest/index.html) and [`pytest-cov`](https://github.com/pytest-dev/pytest-cov) in CI to measure the line coverage of the unittests. It is achieved by registering a trace function with...
@serhiy-storchaka I think this one can be done without changing the interface. Just to be sure, but `count()` and `find()` have all linear complexities right (linear in the window they...
* Issue: gh-136087
https://github.com/python/cpython/blob/5334732f9c8a44722e4b339f4bb837b5b0226991/Lib/os.py#L13 Docs claim that `\r` is a possible value for `os.linesep`, however, I can't find any code that actually sets it to `\r`. But it can only be: - https://github.com/python/cpython/blob/5334732f9c8a44722e4b339f4bb837b5b0226991/Lib/os.py#L52-L54...