[Python-Dev] Re: Similar syntax

Fernando Perez fperez528 at yahoo.com
Fri Aug 6 02:30:20 CEST 2004


Gustavo Niemeyer wrote:

>     <static>
>     def method(foo):
>         pass
> 
> and also
> 
>     <accepts(int,int), returns(float)>
>     def bar(low, high):
>         ...
> 
> Advantages over current syntax:
> 
> - Avoids introducing a new meaningful character in the syntax;
> 
> - Leaves Leo and IPython people happy;

Yup (from the ipython side).

Best,

Fernando

ps.  I think I recall this havnig been discarded, but since it's not in the
PEP, I don't really remember where.  It may even be my memory playing tricks
on me.





More information about the Python-Dev mailing list