New submission from py.user <port...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10275> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com