--On Sunday, 8 August 2004 2:16 p.m. +0400 Roman Suzi <rnd at onego.ru> wrote: > I just anted to rewrite those "real-life-looking" examples with my > proposed '%' syntax: > > def foo() % (classmethod, accepts(int,int), returns(float),): > > or formatted: > > def foo() % ( > classmethod, > accepts(int,int), > returns(float),): > > Or it can be done the this way: > > def foo(): > ... > > foo %= (classmethod, accepts(int,int), returns(float),) > > The operation could be called "decorative apply", if the LHS > has __call__ attribute. Just a new form of % operation with > special syntax for "def" operator. (unlurking for a moment...) Now that actually looks like Python! Great suggestion. --------- Andrew McGregor Director, Scientific Advisor IndraNet Technologies Ltd http://www.indranet-technologies.com/ -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GS/E/B/PA/SS d+(++) s+:+ a C++$ ULS++++ !P+++(---)$ L++++$ E++ W++ !N w(+++) !O() M++ V--() Y+$ PGP+ t- !5? X- !R !tv@ b++(++++) DI++ D+++@ G e+++ h(*)@ r% ------END GEEK CODE BLOCK------
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