Message289489
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(). |
|
Date |
User |
Action |
Args |
2017-03-12 09:34:48 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, mark.dickinson, Oren Milman |
2017-03-12 09:34:48 | serhiy.storchaka | set | messageid: <1489311288.04.0.18328202024.issue29730@psf.upfronthosting.co.za> |
2017-03-12 09:34:48 | serhiy.storchaka | link | issue29730 messages |
2017-03-12 09:34:47 | serhiy.storchaka | create | |
|