[issue11151] Arguments to various types not specified in types module
New submission from Noufal <noufal@nibrahim.net.in>: The documentation for the types module seems to have an obvious bug. The arguments to create the various types are not mentioned in the docs page on http://docs.python.org/library/types.html This came to my attention from a stack overflow question here http://stackoverflow.com/questions/4933325/where-can-i-find-documentation-fo... ---------- assignee: docs@python components: Documentation messages: 128175 nosy: docs@python, noufal priority: normal severity: normal status: open title: Arguments to various types not specified in types module type: behavior versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11151> _______________________________________
Michael Foord <michael@voidspace.org.uk> added the comment: Care to provide a patch Noufal? ---------- nosy: +michael.foord _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11151> _______________________________________
Éric Araujo <merwok@netwok.org> added the comment: Remember that the types module is mostly obsolete now: a type like IntType is described as alias for the builtin int, with a link to the comprehensive document of said int. (On an unrelated note, the types module may encourage type-checking, which is not common or generally useful in Python. Too bad it couldn’t be removed wholesale in 3.x.) That said, adding documentation for other cases like ModuleType and CodeType that aren’t defined anywhere else in the stdlib is indeed a good idea. ---------- nosy: +eric.araujo versions: +Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11151> _______________________________________
participants (3)
-
Michael Foord -
Noufal -
Éric Araujo