mirror of
https://github.com/python/cpython.git
synced 2026-05-16 17:38:22 -04:00
22eb689cf3
In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings.