[New-bugs-announce] [issue10275] how to know that a module is a module, a function is a function ?
py.user
report at bugs.python.org
Mon Nov 1 05:41:35 CET 2010
New submission from py.user <port139 at yandex.ru>:
>>> import os
>>> m = os
>>> type(m)
<class 'module'>
>>> isinstance(m, module)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'module' is not defined
>>> n = 1
>>> type(n)
<class 'int'>
>>> isinstance(1, int)
True
>>>
----------
components: Interpreter Core
messages: 120109
nosy: py.user
priority: normal
severity: normal
status: open
title: how to know that a module is a module, a function is a function ?
type: behavior
versions: Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10275>
_______________________________________
More information about the New-bugs-announce
mailing list