A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-March/043545.html below:

[Python-Dev] method decorators (PEP 318)

[Python-Dev] method decorators (PEP 318) [Python-Dev] method decorators (PEP 318)Guido van Rossum guido at python.org
Fri Mar 26 13:41:03 EST 2004
[Walter Doerwald]
> For me '@' looks like something that the compiler shouldn't see.

I don't understand.  Why?  Is that what @ means in other languages?
Not in JDK 1.5 -- the compiler definitely sees it.

> How about:
> 
>    def foobar(self, arg):
>        .author = AuthorInfo(author="GvR", version="1.0",
                              copyright="GPL", ...)
>        .deprecated = True

No, I want to reserve the leading dot for attribute assignment to a
special object specified by a 'with' statement, e.g.

    with self:
        .foo = [1, 2, 3]
        .bar(4, .foo)

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list

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