Message1896

Author leosoto
Recipients
Date 2007-08-31.20:26:36
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
On Jython:

>>> import inspect, time
>>> inspect.isclass(time)
True

On CPython:

In [1]: import inspect, time

In [2]: inspect.isclass(time)
Out[2]: False

[At least impacts the _doctest.py that comes with Django, as it assumes:

isclass(foo) => hasattribute(foo, '__module__') 

And obviously, time (and other modules where type(module) == 'javaclass') don't have a __module__ attribute]
History
Date User Action Args
2008-02-20 17:18:01adminlinkissue1786009 messages
2008-02-20 17:18:01admincreate