cpython
cpython copied to clipboard
The Python programming language
Fixes #99352. Some proposed changes to allow the `AbstractHTTPHandler` use the value of `http.client.HTTPConnection.debuglevel` if no `debuglevel` is passed to `AbstractHTTPHandler`'s constructor. This has to be done in the constructor...
# Bug report The `urllib.request.urlopen()` function used to respect the debug flag set in `http.client.HTTPConnection.debuglevel` prior to Python 3.5.2. For example: ``` wheeler@fedora:~/cpython$ docker run -it --rm docker.io/library/fedora:24 /bin/bash [root@253ea28b060c...
The documentation says > is_nested() > Return True if the block is a nested class or function. The cpython implementation of symtable.c sets the corresponding flag only if the block...
```python s = socket(AF_UNIX, SOCK_DGRAM) s.bind(Path('/tmp/qwe3333')) ``` gives: `TypeError: a bytes-like object is required, not 'PosixPath'` According to some PEP all path-related functions should accept Path.
When running: ``` >>> locale.normalize ('en') 'en_US.ISO8859-1' ``` On the system in question this locale does not exist: ``` % locale -a C C.UTF-8 de_AT de_AT.iso88591 de_AT.utf8 de_DE.utf8 en_GB en_GB.iso88591...
The original idea and implementation are from @villemoes. The original issue has been inactive for a long time. Benchmark on deepcopy of a `dict` and `dataclass`: ``` deepcopy dict: Mean...
asyncio-only changes from #102499 (which supercedes #96474), updated to match the API introduced by #104750 * Issue: gh-96471 ---- :books: Documentation preview :books:: https://cpython-previews--104228.org.readthedocs.build/
# gh-117146: Expose/document warnings.WarningMessage This change exposes `warnings.WarningMessage` as it is already returned by a public facing function: `catch_warnings`. Mention it in the docs and add it to `__all__` ----...
Provide CDF support in the `kde()` estimation tool which is new in Py 3.13. With both PDF and CDF, a broader variety of problems can be solved. ---- 📚 Documentation...
# Documentation Adding documentation for `warnings.WarningMessage`. discuss thread: https://discuss.python.org/t/warningmessage-is-undocumented/48877/11 ### Linked PRs * gh-117147