Josiah Carlson wrote:
>> Another option would be to allow attribute reference targets when binding
>> function names:
>
> *shivers at the proposal* That's scary. It took me a few minutes just
> to figure out what the heck that was supposed to do.
Yeah, I think it's a concept with many, many more downsides than upsides. A
"given" or "where" clause based solution would be far easier to read:
x.get = f given:
def f(): pass
A given clause has its own problems though (the out-of-order execution it
involves being the one which seems to raise the most hackles).
Cheers,
Nick.
--
Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.blogspot.com
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com