Forward References?

Michael Hudson mwh21 at cam.ac.uk
Wed Apr 19 05:10:15 EDT 2000


"Jeff Massung" <jmassung at magpiesystems.com> writes:

> Also, someone mentioned above having: self.y() (or self.y(self)), my
> question is what is the difference between a.y and self.y?

a.y(self) almost certainly doesn't do what you want in the presence of
inheritance.

Cheers,
M.

-- 
81. In computing, turning the obvious into the useful is a living
    definition of the word "frustration".
     -- Alan Perlis, http://www.cs.yale.edu/~perlis-alan/quotes.html



More information about the Python-list mailing list