cpython
cpython copied to clipboard
The Python programming language
# Documentation The ctypes docs say that the message of the `ArgumentError` for the presented example should be as follows: In fact, it looks like this: ``` >>> strchr =...
Reproduction depends on the quoting. ## QUOTE_ALL ```python import csv data = [1, 1j] with open('example.csv', 'w') as f: writer = csv.writer(f, quoting=csv.QUOTE_ALL) writer.writerow(data) with open('example.csv') as f: contents =...
BPO | [46897](https://bugs.python.org/issue46897) --- | :--- Nosy | @carljm, @DinoV, @itamaro, @mpage *Note: these values reflect the state of the issue at the time it was migrated and might not...
This PR fixes the exception message in `ctypes` docs. Closes #99266. ```python >>> strchr = libc.strchr >>> strchr.restype = c_char_p >>> strchr.argtypes = [c_char_p, c_char] >>> >>> strchr(b"abcdef", b"def") Traceback...
https://bugs.python.org/issue39725
Note: The `--debug` mode (break run with original exception for seamless external post-mortem handling - e.g. for IDEs, interactive, super-runners ...) was originally inspired by #23900 . Some test code...
Per #92613 , for the following functionality deprecated by PEP 594 (PEP-594) but not formally implemented due to an oversight: * Low-level interfaces `binascii.a2b_uu` and `binascii.b2a_uu` for decoding and encoding...
As referred to in #92611 , PEP 594 (PEP-594) [states](https://peps.python.org/pep-0594/#uu-and-the-uu-encoding) that the `uuencode`/`decode`-related functions in the `binascii` module, as well as the `uu` codec will be deprecated in Python 3.11...
BPO | [25035](https://bugs.python.org/issue25035) --- | :--- Nosy | @bitdancer *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current...
* Issue: gh-99257