maybe this is like decorators
-Alex Goretoy
http://www.goretoy.com
On Sun, Mar 15, 2009 at 2:20 AM, alex goretoy
wrote:
> or use . (dot) where variable and () (parans) where function
>
> duck()().
> or
> duck.().()
> or
> for long sentences
> duck.[].()()...
>
> using dot seperator or double do
or use . (dot) where variable and () (parans) where function
duck()().
or
duck.().()
or
for long sentences
duck.[].()()...
using dot seperator or double dot separator for application where its
currently not being used, but for syntax errors
-Alex Goretoy
http://www.goretoy.com
On Sun, Mar 15,
actually it would be more like
import os
def quacks(value):
return "%s/%s%s"% (os.environ["PWD"],os.path.dirname(__file__),value)
_aduck="goose"
duck = if is not os.path.exists quacks str(_aduck)
to perform the calls
duck()()
this would only with with functions that return something though,
basically
import os
def quacks(self,value):
return (1,0)[value]
_aduck="~/goose"
duck = if os.path.exists quacks str(_aduck)
duck()()
or does this get in the way with some other pre-existing syntax
interpretation implementations?
-Alex Goretoy
http://www.goretoy.com
On Sun, Mar 15, 2009 a
hi i have a suggestion, surely this wont wonk, and is merely a suggestion to
aedd this type of syntax to python
This is an insperation from peps 318
> def foo(self):
> perform method operation
> foo = classmethod(foo)
>
> where it says perform mthod operation, why not have that be an actual
s