A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

Theerasak Photha hanumizzle at gmail.com
Tue Oct 17 10:03:47 CEST 2006


On 14 Oct 2006 09:25:00 -0700, Paul Boddie <paul at boddie.org.uk> wrote:

> Unlike Java, Python's first class functions and
> methods are already highly useful for callback-based systems

Curious: how well does the use of returning inner functions work as a
strategy for providing effectively 'anonymous' callbacks? e.g.

def outer(x):
  def inner(y):
    ...
  return inner

-- Theerasak



More information about the Python-list mailing list