Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Documentation
The are a couple of paragraphs about error-checking behaviour forstr.encode
andstr.decode
that appears in a few versions of Python and could potentially be improved in future versions.
As found in thePython 3.9.14 documentation forstd.encode
:
By default, theerrors argument is not checked for best performances, but only used at the first encoding error. Enable thePython Development Mode, or use a debug build to checkerrors.
The paragraph before that is fairly dense - there could be an opportunity to improve both of them.