On Dec 8, 12:01 pm, [EMAIL PROTECTED] wrote:
>
> It would be nice to be able to do the following instead:
>
> class C:
>     def createfunc(self):
>         def self.func(arg):
>             return arg + 1
>

The above example should have read as follows:

class C:
    def createfunc(self, arg):
        def self.func(arg):
            return arg + 1

-----

Anthony Tolle
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to