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

[Python-Dev] String literal concatenation & docstrings

[Python-Dev] String literal concatenation & docstrings [Python-Dev] String literal concatenation & docstringsBrett C. bac at OCF.Berkeley.EDU
Mon Nov 29 03:51:27 CET 2004
Guido van Rossum wrote:
>>>Right.  Over-clarification results in docs that read like the
>>>instructions for the holy hand grenade ;-)
>>
>>Well said.
> 
> 
> Except that now I can't find the adjacent string literals in the
> grammar any more!
> 
> I'm looking al http://www.python.org/dev/doc/devel/ref/grammar.txt
> 
> The path goes from primary to atom to literal to stringliteral (and
> from there on into lexical detail) and nowhere does the grammar show
> that multiple string literals are allowed. Adding a single + after
> stringliteral in the expansion for literal would fix this
[SNIP]

But if you look at Grammar/Grammar you will notice that atom goes to STRING+ 
which should cover this.  Is that grammar.txt file generated from 
Grammar/Grammar or is it done by hand?

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