Guido's new method definition idea

greg greg at
Tue Dec 9 07:59:10 CET 2008

anthony.tolle at 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.


More information about the Python-list mailing list