Docorator Disected

Ron_Adam radam2 at tampabay.rr.com
Sun Apr 3 12:56:34 EDT 2005


On 3 Apr 2005 00:11:22 -0800, "El Pitonero" <pitonero at gmail.com>
wrote:

>Martin v. Löwis wrote:

>Perhaps this will make you think a bit more:

Now my problem is convincing the group I do know it. LOL


>Another example:
>
>def f():
>   return f
>
>g = f()()()()()()()()()()()
>
>is perfectly valid.

Good example!  Yes, I realize it. As I said before I just haven't come
across this particular variation before using decorators so it wasn't
clear to me at first, it is now. :)

Read my reply to Bengt Richter.

Thanks, this has been a very interesting discussion.

Ron




More information about the Python-list mailing list