Staging
v0.5.1
https://github.com/python/cpython
Revision bf15d5b775c31e65584926998ff141edc75226d4 authored by Eric Wieser on 10 February 2020, 23:32:18 UTC, committed by GitHub on 10 February 2020, 23:32:18 UTC


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.
1 parent 95d024d
History
Tip revision: bf15d5b775c31e65584926998ff141edc75226d4 authored by Eric Wieser on 10 February 2020, 23:32:18 UTC
Correct the documented default encoding (GH-18429)
Tip revision: bf15d5b
File Mode Size
__init__.py -rw-r--r-- 0 bytes
error.py -rw-r--r-- 2.6 KB
parse.py -rw-r--r-- 39.8 KB
request.py -rw-r--r-- 97.7 KB
response.py -rw-r--r-- 2.3 KB
robotparser.py -rw-r--r-- 9.2 KB

back to top