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/2004-August/047459.html below:

[Python-Dev] Re: Decorators: vertical bar syntax

[Python-Dev] Re: Decorators: vertical bar syntax [Python-Dev] Re: Decorators: vertical bar syntaxFredrik Lundh fredrik at pythonware.com
Mon Aug 9 22:00:19 CEST 2004
David Eppstein wrote:

> With @, a third party tool has an unambiguous indication of whether a
> line is a decorator.  With |, it is not possible to recognize decorators
> with a regular expression, instead you have to do some context-free
> parsing to determine whether some previous line has an unclosed paren
> (in which case the | is a binop rather than a decorator).

"\
@decorator #"

"""
@decorator
"""

(etc)

</F>



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