[issue18373] implement sys.get/setbyteswarningflag()

Daniel Holth report at bugs.python.org
Sat Jul 6 14:30:36 CEST 2013


Daniel Holth added the comment:

You would just enable this during your serialization code, and if
(perhaps someone is calling your library and passing it the wrong type)
they would be guarded against this common error.

On Sat, Jul 6, 2013, at 12:15 AM, R. David Murray wrote:
> 
> R. David Murray added the comment:
> 
> Why wouldn't you just enable bytes warning and fix all the code to work
> correctly?
> 
> ----------
> nosy: +r.david.murray
> 
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue18373>
> _______________________________________

----------

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


More information about the Python-bugs-list mailing list