New user's initial thoughts / criticisms of Python
breamoreboy at yahoo.co.uk
Sat Nov 9 22:01:46 CET 2013
On 09/11/2013 20:33, Mark Janssen wrote:
>> * Call me pedantic by why do we need a trailing comma for a list of one
>> item? Keep it intuitive and allow lstShopping= or ["Bread"] or
>> ["Bread", "Milk","Hot Chocolate"] I don't like ["Bread",]. It bugs me.
> This one got answered, it has to do with the parser when dealing with parens.
It got answered and was simply mistaken, no comma is needed but a comma
will be accepted. How did the parser enter into this, or are you also
thinking about tuples?
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
More information about the Python-list