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/032338.html below:

[Python-Dev] Extended Function syntax

[Python-Dev] Extended Function syntax [Python-Dev] Extended Function syntaxMartin v. Löwis martin@v.loewis.de
22 Jan 2003 18:32:30 +0100
Guido van Rossum <guido@python.org> writes:

> I think the final proposal looked like this:
> 
>   def name(arg, ...) [expr, ...]:
>       ...body...
> 

I don't think there was much discussion. The suggested semantics was
that this is equivalent to

   def name(arg, ...):
     ...body...
   name=expr(name)
   ...

I *think* there was discussion as to the namespace in which expr is
evaluated, or whether certain identifiers have keyword or predefined
meaning (so you can write 'static' instead of 'staticmethod').

I don't think there was ever a complete analysis whether this syntax
meets all requirements, i.e. whether you could use it for all newstyle
features. In particular, I don't recall what the proposal was how
properties should be spelled.

Regards,
Martin




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