. Python 2.1 function attributes

Robin Becker robin at jessikat.fsnet.co.uk
Sat Jan 27 11:11:15 EST 2001


In message <20010127170031.P962 at xs4all.nl>, Thomas Wouters
<thomas at xs4all.net> writes
>> mmmhhhh :( what happens with
>> 
>> def f() >> x:
>>         return 1
>> 
>> 
>> def f() >> x:
>>         y=2
>>         return y
>> 
>> seems to me that having multiple ways of doing return is a bad idea
>
>You forgot to quote the clue:
>
>> > hoping-a-truly-bad-idea-adds-some-perspective<wink>-ly y'rs  - tim
>
>Tim wasn't serious, the syntax hasn't even been proposed. (At least, I
>haven't seen the proposal. Then again, maybe Barry did propose it, and all
>those mail delays on python-dev were an attempt to get it approved and
>checked in before anyone oculd complain :-)
>
>That-was-a-joke-too-in-case-you-wondered-ly y'rs,
yes I figured it was a bit funny, but nastier things are proposed and
aren't laughed off. When we start to get typing in python 3000 I bet
there'll be constructs similar in spirit to the above devoted to the
type of the return
-why don't we have $ and @ and \ operators-ly yrs- 
Robin Becker




More information about the Python-list mailing list