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

[Python-Dev] Meaning of trailing comma?

[Python-Dev] Meaning of trailing comma?Roman Meisl meisl@Mathematik.Uni-Marburg.de
Wed, 04 Jun 2003 16:14:38 +0200
Hello,

Following test ist possible (as far as I've understood the grammar)
(a,b,)
    ^
What's the meaning of this comma? Does it make sense?

In general, there are many rules with an optional comma (or semicolon) 
at the end, e. g.:
fplist: fpdef (',' fpdef)* [',']
exprlist: expr (',' expr)* [',']
or
testlist: test (',' test)* [',']
So I ask myself why is this?

By the way, the grammar mentioned in the online-help has very many 
errors, which leads to much confusion. Perhaps it should be exchanged 
by a correct one, shouldn't it? Or at least a hint or link to the 
correct one.

Roman Meisl


-- 
PGP-Key available
Kontakt: 
http://www.mathematik.uni-marburg.de/~meisl/kontakt.html




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