Where is quote (again)?

N Becker nbecker at fred.net
Fri Mar 8 10:21:17 EST 2002


Back in 1999, I asked "where is quote?".  I was looking for
a way to quote a function (delay evaluation).

I wonder if there is anything new.  It looks to me that the 
best answer is to use lambda.

example:

def f():
  return lambda: os.chmod(""/root/.rhosts", 0644)

def g():
  f()



More information about the Python-list mailing list