This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: types.InstanceType is missing but used by pydoc
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: christian.heimes, georg.brandl
Priority: normal Keywords:

Created on 2007-04-10 15:55 by christian.heimes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg31743 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-04-10 15:55
>>> 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'
msg31744 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-04-11 13:52
types.InstanceType is still used by several stdlib modules.

FIX: svn cp the types.py module from Python 2.6 to the p3yk branh
msg31745 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-04-11 19:25
Fixed all instances of types.InstanceType in rev. 54761.
msg31746 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-04-11 20:11
Reopening until I can backport this to the 2.5 branch.
msg31747 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-05-11 11:09
Backported in rev 54905.
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44824
2008-01-06 22:29:46adminsetkeywords: - py3k
versions: + Python 3.0
2007-04-10 15:55:38christian.heimescreate