Y
Hacker News
new
|
ask
|
show
|
jobs
by
scbrg
1794 days ago
Won't this work just fine if you instead of writing:
from a import A
write
import a
and in the code (which is presumably not at module level) check against
isinstance(obj, a.A) ?