From: Luke H. <lh...@eb...> - 2003-01-08 17:59:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I don't think this patch will work properly if the inheritance is more than > one level deep. It needs to be a depth-first search through the > inheritance hierarchy, or something like that. Did you test that? Uh... I dont see why it WOULDN'T work through inheritance. (The point of inheritance is to allow functions to be called through inheriting classes... LOL) The following test shows this to be true: class myclass1: def myfunc1(): print "myfunc1" class myclass2(myclass1): def myfunc2(): print "myfunc2" class myclass3(myclass2): def myfunc3(): print "myfunc3" myobj = myclass3() hasattr(myobj, "myfunc1") hasattr(myobj, "myfunc2") hasattr(myobj, "myfunc3") returns: 1 1 1 > What is the purpose of initPSP() anyhow? It's always empty. Why can't we > just remove it? Then we could also remove the awake() method from the > generated code and avoid the whole problem. Good question =) I assume this is a feature currently being worked on? - -- Luke Holden eBI Solutions Main: (949) 387-5182 Email: lh...@eb... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+HGb53q5xXfLZTQkRAtCLAJ9w1hgwBYFWlMeUymh4VqgX1C58+ACeIYlp MN8mbdQ4gEH8NLptIIuhpOY= =4tQw -----END PGP SIGNATURE----- |