This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients jcon, nadeem.vawda, neologix, petri.lehtinen, pitrou, rich-noir
Date 2011-06-06.14:39:15
SpamBayes Score 1.49261e-06
Marked as misclassified No
Message-id <>
In-reply-to <>
>> 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 :)

If being pretty is the only reason for this choice, then I think that
documenting the method as

method:: read([n])

is simpler and cleaner .

But you've got much more experience than me, so I won't argue any further :-)

> Can I use _PyIO_ConvertSsize_t? Or should I duplicate its
> functionality in mmapmodule.c?

I let Antoine answer that.
Date User Action Args
2011-06-06 14:42:25neologixsetrecipients: + neologix, pitrou, nadeem.vawda, jcon, rich-noir, petri.lehtinen
2011-06-06 14:39:16neologixlinkissue12021 messages
2011-06-06 14:39:16neologixcreate