From: SourceForge.net <no...@so...> - 2007-08-31 20:26:37
|
Bugs item #1786009, was opened at 2007-08-31 16:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1786009&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Leonardo Soto (leosoto) Assigned to: Nobody/Anonymous (nobody) Summary: inspect.isclass returns true for some models Initial Comment: 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] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1786009&group_id=12867 |