cpython
cpython copied to clipboard
The Python programming language
There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. (cherry picked from commit d315722564927c7202dd6e111dc79eaf14240b0d) (cherry picked from commit a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15) Co-authored-by: Miss Islington (bot) Co-authored-by:...
While Argument Clinic generated code is packing varargs to a tuple, the arguments' refcounts are not increased. So all the packed arguments‘ refcounts are decreased 1 improperly when the tuple...
BPO | [20291](https://bugs.python.org/issue20291) --- | :--- Nosy | @rhettinger, @ncoghlan, @vstinner, @larryhastings, @methane, @meadori, @zware, @serhiy-storchaka, @GPHemsley, @isidentical, @Fidget-Spinner, @colorfulappl PRs | python/cpython#18609python/cpython#27211python/cpython#30286python/cpython#32092 *Note: these values reflect the state of...
# Bug report Originally reported to the security address on September 9. ```python ('xn--016c'+'a'*5000).encode('utf-8').decode('idna') ``` The execution time is not linear in relation to the input string size, which can...
# Bug report After installing Python 3.10 from the Microsoft Store, I tried to install a package and was hit with the following warning: ``` WARNING: The script reCBZ.exe is...
This is the bug in python count() function. ```pycon >>> a="I Iove python" >>> b=a.count("") >>> print(b) ``` So normally count function is used to check specific word into the...
Most types with `@abstractmethod` definitions have their methods validated in `test_collections.py`, for example: 1. https://github.com/python/cpython/blame/49f61068f49747164988ffc5a442d2a63874fc17/Lib/test/test_collections.py#L1896-L1897 2. https://github.com/python/cpython/blame/49f61068f49747164988ffc5a442d2a63874fc17/Lib/test/test_collections.py#L928 But, not these three: 1. `Awaitable` 2. `Coroutine` 3. `ByteString` I will add...
The global allocators were stored in 3 static global variables: `_PyMem_Raw`, `_PyMem`, and `_PyObject`. State for the "small block" allocator was stored in another 13. That makes a total of...
BPO | [21109](https://bugs.python.org/issue21109) --- | :--- Nosy | @birkenfeld, @jcea, @gustaebel, @vstinner, @taleinat, @tiran, @benjaminp, @jwilk, @ned-deily, @vadmium, @serhiy-storchaka, @psyker156, @shanxS, @epicfaace, @websurfer5 PRs | python/cpython#15244 Dependencies | bpo-17102: tarfile...