Message311823
Maybe use PyNumber_Check() to distinguish these two cases?
if (PyNumber_Check(obj))
return PyNumber_Float(obj);
PyErr_SetString(PyExc_TypeError, "not a number");
return NULL; |
|
| Date |
User |
Action |
Args |
| 2018-02-08 09:31:44 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mark.dickinson |
| 2018-02-08 09:31:44 | serhiy.storchaka | set | messageid: <1518082304.22.0.467229070634.issue32794@psf.upfronthosting.co.za> |
| 2018-02-08 09:31:44 | serhiy.storchaka | link | issue32794 messages |
| 2018-02-08 09:31:44 | serhiy.storchaka | create | |
|