[issue12021] mmap.read requires an argument

Antoine Pitrou report at bugs.python.org
Sun Jun 5 13:22:51 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> That's because of the _PyIO_ConvertSsize_t converter, which silently
> converts None to -1.
> There's probably a good reason for doing this in the _io module

I'm not sure about the original reason, but I find None as the default "omitted" value prettier than -1 myself, so I think it's a good thing :)

----------

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


More information about the Python-bugs-list mailing list