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/047528.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
Tue Aug 10 09:34:08 CEST 2004
David Eppstein wrote:

>> shouldn't a simple parenthesis counter suffice?  you have to count
>> parens in many cases anyway (e.g. to find function bodies).
>
> I think it would suffice (with some care to ignore parens in comments
> and strings, and assuming there aren't any mismatches), but counting is
> not something you can do in a regexp.

no, but adding a single integer register to the scanning loop isn't
that much work.

</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