[Python-Dev] Questions about '@' in pep 318

Michael Hudson mwh at python.net
Fri Aug 6 16:20:52 CEST 2004


"Edward K. Ream" <edreamleo at charter.net> writes:

>> > annotate.accepts(int, (int,float))
>>
>> I don't understand. How are you changing/annotating the function?
>
> I'm glad you asked.  My suggestion was that the compiler turn
>
> annotate.accepts(int, (int,float))
>
> into exactly what it would have turned
>
> @accepts(int, (int,float))
>
> into.

I don't like this sort of idea: something that's done by the compiler
should *look* like it is being done by the compiler, i.e. be new
syntax.

Cheers,
mwh

-- 
  GAG: I think this is perfectly normal behaviour for a Vogon. ...
VOGON: That is exactly what you always say.
  GAG: Well, I think that is probably perfectly normal behaviour for a
      psychiatrist. -- The Hitch-Hikers Guide to the Galaxy, Episode 9


More information about the Python-Dev mailing list