Guido's new method definition idea

greg greg at cosc.canterbury.ac.nz
Tue Dec 9 01:59:10 EST 2008


anthony.tolle at gmail.com wrote:

> On another related note, I would be interested in seeing this syntax
> adopted for a different purpose...
> 
> class C:
>     def createfunc(self):
>         def self.func(arg):
>             return arg + 1

I agree -- this would be a much better use of the syntax,
and I'd like to see this possibility left open.

-- 
Greg



More information about the Python-list mailing list