]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Correct the documented default encoding (GH-18429)
authorEric Wieser <wieser.eric@gmail.com>
Mon, 10 Feb 2020 23:32:18 +0000 (23:32 +0000)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 23:32:18 +0000 (15:32 -0800)
commitbf15d5b775c31e65584926998ff141edc75226d4
tree8e25b9958980deacd14731fe169c682b9f6c9fd8
parent95d024d585bd3ed627437a2f0cbc783c8a014c8a
Correct the documented default encoding (GH-18429)

From the source for `PyUnicode_Decode`, the implementation is:
```
if (encoding == NULL) {
    return PyUnicode_DecodeUTF8Stateful(s, size, errors, NULL);
}
```
which is pretty clearly not defaulting to ASCII.

---

I assume this needs neither a news entry nor bpo link.
Doc/c-api/unicode.rst