commit | 6921eca227ac2283ebcdf98e10aebea57bd5daf3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Feb 18 16:36:28 2003 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Feb 18 16:36:28 2003 +0000 |
tree | e705276019bc84a0d827dc0aa31b8dc1c2d4dcff | |
parent | 55dc26cbc764574bf1cca7e74bb511d623e1af7d [diff] |
Make PyNumber_Check() a bit more careful, since all sorts of things now have tp_as_number. Check for nb_int or nb_float.