Greg Ewing wrote: > 3. In this kind of setup, using | instead of @ would be ok as well, I guess: > Fernando Perez <fperez528 at yahoo.com>: > >> def bar(low,high): >> |accepts(int,int) >> |returns(float) > > How about > > def bar(low,high): > ...accepts(int,int) > ...returns(float) The ellipsis is alredy valid python syntax elsewhere: In [7]: a=arange(3**3) In [8]: a.shape=(3,3,3) In [9]: a[:,...,:] Out[9]: array([[[ 0, 1, 2], [ 3, 4, 5], [ 6, 7, 8]], [[ 9, 10, 11], [12, 13, 14], [15, 16, 17]], [[18, 19, 20], [21, 22, 23], [24, 25, 26]]]) I don't think it would be a good idea to make it do this kind of double-duty. best, f
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4