Python error=classdberror(exceptions.Exception)(do`help(';dbhash';)`),这个语言结构叫什么?

Python error=classdberror(exceptions.Exception)(do`help(';dbhash';)`),这个语言结构叫什么?,python,django,Python,Django,帮助('dbhash')(标准库模块): 如何调用error=classdberror(exceptions.Exception)语言构造?它有什么作用?如果您安装了django,那么在帮助('django.http.HttpResponse')时可以看到此构造的另一个示例 (我使用的是python 2.7.2和django 1.4)它没有有效的语法。在帮助中,它意味着表示error最初定义为classdberror,并从exceptions.Exception派生而来。Exception我已经

帮助('dbhash')
(标准库模块):

如何调用
error=classdberror(exceptions.Exception)
语言构造?它有什么作用?如果您安装了django,那么在帮助('django.http.HttpResponse')时可以看到此构造的另一个示例


(我使用的是python 2.7.2和django 1.4)

它没有有效的语法。在帮助中,它意味着表示
error
最初定义为
classdberror
,并从
exceptions.Exception
派生而来。Exception

我已经查看了
dbhash.py
脚本和
django.http.\uu init\uuuuuu.py
脚本。我不知道如何编写脚本以在帮助函数中输出该构造。有人可以编写一个小的示例类,这样当您执行
help('samplemodule')
时,您就可以看到同样的结构了吗?
CLASSES
    exceptions.Exception(exceptions.BaseException)
        bsddb.db.DBError

    error = class DBError(exceptions.Exception)
     |  Method resolution order:
     |      DBError
     |      exceptions.Exception
     |      exceptions.BaseException
     |      __builtin__.object
     :