Gary Herron wrote:
If the method does not bind it, then Python will look in the class for foo. This could work

class Class1:
     foo = whatever # Available to all instances
     def __init__(self):
           foo.bar.object

             self.foo.bar.object

              ^- needs the self reference or will not work

~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to