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 serhiy.storchaka
Recipients Oren Milman, amaury.forgeotdarc, benjamin.peterson, martin.panter, pitrou, serhiy.storchaka
Date 2017-03-07.06:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488867483.71.0.302495631687.issue29741@psf.upfronthosting.co.za>
In-reply-to
Content
Other objects in the io module use special-purposed converter _PyIO_ConvertSsize_t() which checks PyNumber_Check() and calls PyNumber_AsSsize_t().

I think StringIO implementation can be changed to reuse _PyIO_ConvertSsize_t() for simplicity.

After that BytesIO implementation can be changed to use the same converter just for uniformity.
History
Date User Action Args
2017-03-07 06:18:03serhiy.storchakasetrecipients: + serhiy.storchaka, amaury.forgeotdarc, pitrou, benjamin.peterson, martin.panter, Oren Milman
2017-03-07 06:18:03serhiy.storchakasetmessageid: <1488867483.71.0.302495631687.issue29741@psf.upfronthosting.co.za>
2017-03-07 06:18:03serhiy.storchakalinkissue29741 messages
2017-03-07 06:18:03serhiy.storchakacreate