cpython
cpython copied to clipboard
The Python programming language
Fix a small bug in `makeunicodedata` where the caching of decompositions lists was broken because the code was trying to use `list.index` with two lists of integers to find pre-existing...
**Documentation** In the 6th tutorial chapter about [Modules](https://docs.python.org/3/tutorial/modules.html), the term **"source module"** is used. > Python does not check the cache in two circumstances. First, it always recompiles and does...
I was reading `makeunicodedata.py` and found a small issue that leads to a bit of wasted space in the `unicodedata` module. This [code](https://github.com/python/cpython/blob/main/Tools/unicode/makeunicodedata.py#L211): ```python try: i = decomp_data.index(decomp) except ValueError:...
win32_wchdir() retries GetCurrentDirectory() with a larger buffer if necessary, but doesn't check whether the new buffer is large enough. Another thread could change the current directory in meanwhile, so the...
As discussed with @pablogsal , meta-issue to add the significant PEPs not yet added to the summary section of the [What's New in Python 3.11](https://docs.python.org/3.12/whatsnew/3.11.html), as well as PEPs that...
# Bug report `urllib.parse.urljoin` is usually used to join a normalized absolute URL with a relative URL, and it generally works for that purpose. But if it’s used to join...
> can we give the changed tests meaningful names and docstrings? _Originally posted by @Tinche in https://github.com/python/cpython/pull/95761#pullrequestreview-1064468343_
* Issue: gh-95601 * Issue: https://github.com/python/cpython/issues/95920
# Bug report [apksigcopier](https://github.com/obfusk/apksigcopier) CI started failing on 3.11 beta because of [this seemingly unnecessary change](https://github.com/python/cpython/pull/32007/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851L483) in #32007 (which added fallback encoding support): ```diff def _encodeFilenameFlags(self): try: - return self.filename.encode('ascii'),...
BPO | [15808](https://bugs.python.org/issue15808) --- | :--- Nosy | @terryjreedy, @ned-deily, @serwy Files | [issue15808_idle_doc_paths.patch](https://bugs.python.org/file27052/issue15808_idle_doc_paths.patch "Uploaded as text/plain at 2012-08-30.01:42:01 by @ned-deily") *Note: these values reflect the state of the issue...