[Python-ideas] The Descriptor Protocol...

Andrew Svetlov andrew.svetlov at gmail.com
Thu Mar 3 12:53:56 CET 2011

Something like:
Point -> var_name = namedtuple(var_name, 'xy')

Take into acount, `->` operatior is not allowed into regular Python
code, only in function annotations as annotation for result value.
Maybe that close enough to our case?

More information about the Python-ideas mailing list