diff options
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-06-24-21-53-52.bpo-37388.0XTZmW.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-06-24-21-53-52.bpo-37388.0XTZmW.rst b/Misc/NEWS.d/next/Core and Builtins/2019-06-24-21-53-52.bpo-37388.0XTZmW.rst new file mode 100644 index 0000000..295ef1b --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-06-24-21-53-52.bpo-37388.0XTZmW.rst @@ -0,0 +1,7 @@ +In development mode and in debug build, *encoding* and *errors* arguments are +now checked on string encoding and decoding operations. Examples: :func:`open`, +:meth:`str.encode` and :meth:`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. |