Issue1786009

classification
Title: inspect.isclass returns true for some modules
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: leosoto, zyasoft
Priority: normal Keywords:

Created on 2007-08-31.20:26:36 by leosoto, last changed 2008-09-14.00:16:51 by zyasoft.

Messages
msg1896 (view) Author: Leonardo Soto (leosoto) Date: 2007-08-31.20:26:36
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]
msg3561 (view) Author: Jim Baker (zyasoft) Date: 2008-09-14.00:16:51
No longer an issue with Django:
http://code.djangoproject.com/ticket/5442
History
Date User Action Args
2008-09-14 00:16:51zyasoftsetstatus: open -> closed
resolution: wont fix
messages: + msg3561
nosy: + zyasoft
2007-08-31 20:26:36leosotocreate