A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-January/032448.html below:

[Python-Dev] Extended Function syntax

[Python-Dev] Extended Function syntax [Python-Dev] Extended Function syntaxSamuele Pedroni pedronis@bluewin.ch
Mon, 27 Jan 2003 16:33:27 +0100
From: "Oren Tirosh" <oren-py-d@hishome.net> 
> The statement "def foo(...):" is just a shortcut for the assignment
> "foo=new.function(CODE, GLOBS, 'foo')". So why not make "def foo.bar(...):"
> a shortcut for "foo.bar=new.function(CODE, GLOBS, 'foo.bar')" ?
> 
> If the attributes of a property object are made assignable the following 
> code will work:
> 
>   prop = property()
> 
>   def prop.fget(self):
>      ...
> 
>   def prop.fset(self, value):
>      ...
> 
> This will also allow creating classes the way Barry suggested or creating
> new kinds of namespaces.
> 
> "Namespaces are one honking great idea -- let's do more of those!"-ly yours,

I like this very much.



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