[issue18373] implement sys.get/setbyteswarningflag()

Daniel Holth report at bugs.python.org
Thu Jul 18 14:55:51 CEST 2013


Daniel Holth added the comment:

On Thu, Jul 18, 2013, at 04:22 AM, Antoine Pitrou wrote:
> 
> Antoine Pitrou added the comment:
> 
> I don't know why your patch is putting this in the thread state,
> though...

If you have multiple threads one thread might want exceptions when
str(bytes), and the other might not.

str(bytes) has been an insidious problem for me. No exceptions,
seemingly working code, and b'' in serialized data. I am motivated to
turn it off.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18373>
_______________________________________


More information about the Python-bugs-list mailing list