[issue35714] Document that the null character '\0' terminates a struct format spec

Steven D'Aprano report at bugs.python.org
Thu Jan 10 20:03:27 EST 2019


Steven D'Aprano <steve+python at pearwood.info> added the comment:

I'm not sure whether having NULLs terminate a struct format string is a feature or a bug.

Given that nearly every other string in Python treat NULLs as ordinary characters, I'm inclined to say this is a bug. Or at least an unnecessary restriction that ought to be lifted.

----------
nosy: +steven.daprano
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35714>
_______________________________________


More information about the Python-bugs-list mailing list