Guido's new method definition idea

greg greg at cosc.canterbury.ac.nz
Tue Dec 9 07:59:10 CET 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