> B[some_hash] still returns an instance of the old class A, while I want an instance of the new class A. I don't understand this sentence. How does B[some_hash] related to A?
I've tried the below and it seems to work. Can you paste some code to help us
understand more?
-- old.py --
class A:
pass
-- new.py __
import old
class A(old.A):
pass
-- main.py --
import new
a = new.A()
a.__class__ # Shows new.A
--
http://mail.python.org/mailman/listinfo/python-list
