Is a "real" C-Python possible?

George Sakkis george.sakkis at gmail.com
Wed Dec 12 13:28:26 EST 2007


On Dec 12, 4:09 am, Kay Schluehr <kay.schlu... at gmx.net> wrote:

> I vaguely remember a discussion a few years ago, where someone made
> the quite reasonable suggestion of introducing some kind of
> thunk_statement:
>
> class A(object):
>     foo = property:
>         def fget(self):
>             return self._foo
>         def fset(self, value):
>             self._foo = value

That's almost identical to a recipe I had written once upon a time,
without requiring a syntax change: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410698

George



More information about the Python-list mailing list