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, mark.dickinson, rhettinger, serhiy.storchaka
Date 2017-03-12.09:34:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489311288.04.0.18328202024.issue29730@psf.upfronthosting.co.za>
In-reply-to
Content
The call of PyNumber_Check() is redundant if we don't bother about error message. But if we want to have accurate error message we should check types before converting.

In parse_args_finds_byte we should check rather PyObject_CheckBuffer() (and maybe PyBytes_Check() for fast path if this makes sense). Perhaps some methods need to check also PyTuple_Check().
History
Date User Action Args
2017-03-12 09:34:48serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, Oren Milman
2017-03-12 09:34:48serhiy.storchakasetmessageid: <1489311288.04.0.18328202024.issue29730@psf.upfronthosting.co.za>
2017-03-12 09:34:48serhiy.storchakalinkissue29730 messages
2017-03-12 09:34:47serhiy.storchakacreate