[Python-checkins] r75051 - in python/branches/py3k: Lib/test/test_range.py Objects/rangeobject.c
Nick Coghlan
ncoghlan at gmail.com
Thu Sep 24 22:45:10 CEST 2009
mark.dickinson wrote:
> range_contains(rangeobject *r, PyObject *ob) {
> - if (PyLong_Check(ob)) {
> + if (PyLong_CheckExact(ob) || PyBool_Check(ob)) {
Didn't you just create the same problem for yourself with subclasses of
bool?
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
More information about the Python-checkins
mailing list