IsPython really O-O?

Rainer Deyke root at rainerdeyke.com
Tue Nov 13 19:38:19 EST 2001


"Ian Bicking" <ianb at colorstudy.com> wrote in message
news:359f85cd.0111131158.1520ea32 at posting.google.com...
> Erik Max Francis <max at alcyone.com> wrote in message
news:<3BEE09CD.FFC433CC at alcyone.com>...
> Python is really sending, not calling.  You don't (ever) know before
> runtime what function definition is going to be invoked.

If by "runtime" you mean at the actual time the function is called, you're
wrong.

def f(x):
  g = x.g
  print "I'm going to call %s." % g
  g()


--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games           -           http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list