[ python-Bugs-1697782 ] types.InstanceType is missing but used by pydoc

SourceForge.net noreply at sourceforge.net
Wed Apr 11 15:52:17 CEST 2007


Bugs item #1697782, was opened at 2007-04-10 17:55
Message generated for change (Comment added) made by tiran
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1697782&group_id=5470

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: Python Library
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christian Heimes (tiran)
Assigned to: Nobody/Anonymous (nobody)
Summary: types.InstanceType is missing but used by pydoc

Initial Comment:
>>> help(callable.__call__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/heimes/dev/python/p3yk/Lib/site.py", line 348, in __call__
    return pydoc.help(*args, **kwds)
  File "/home/heimes/dev/python/p3yk/Lib/pydoc.py", line 1658, in __call__
    self.help(request)
  File "/home/heimes/dev/python/p3yk/Lib/pydoc.py", line 1702, in help
    else: doc(request, 'Help on %s:')
  File "/home/heimes/dev/python/p3yk/Lib/pydoc.py", line 1477, in doc
    desc = describe(object)
  File "/home/heimes/dev/python/p3yk/Lib/pydoc.py", line 1436, in describe
    if type(thing) is types.InstanceType:
AttributeError: 'module' object has no attribute 'InstanceType'


----------------------------------------------------------------------

>Comment By: Christian Heimes (tiran)
Date: 2007-04-11 15:52

Message:
Logged In: YES 
user_id=560817
Originator: YES

types.InstanceType is still used by several stdlib modules.

FIX: svn cp the types.py module from Python 2.6 to the p3yk branh

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1697782&group_id=5470


More information about the Python-bugs-list mailing list