[issue30888] import class not isinstance of the class

2017-07-17 Thread
邱伟略 added the comment: ok. i see what you mean. so python mark the class from the import way -- resolution: not a bug -> works for me stage: -> resolved status: pending -> closed ___ Python tracker <rep...@bugs.python.org> <http

[issue30888] import class not isinstance of the class

2017-07-09 Thread
New submission from 邱伟略: the working directory is like below: bug/ dirc/ __init__.py foo.py foo2.py __init__.py foo1.py in foo.py: ``` class Event(object): pass ``` in foo2.py: ``` from a.foo import Event def fun(): return Event() ``` in foo1