Forward References?

Moshe Zadka moshez at math.huji.ac.il
Tue Apr 18 03:08:26 EDT 2000


On Tue, 18 Apr 2000, Jerome Chan wrote:

> Just a silly question but how do I do forward references?

This has nothing to with your problem.

> class a:
>    def x(self):
>       y(self)
        ^^^
         Change this to self.y()
      
>    def y(self):
>       print "Hello"

Attribute reference is always done explicitly
--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list