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/2005-September/056077.html below:

[Python-Dev] Replacement for print in Python 3.0

[Python-Dev] Replacement for print in Python 3.0 [Python-Dev] Replacement for print in Python 3.0Nick Coghlan ncoghlan at gmail.com
Sat Sep 3 03:19:59 CEST 2005
Martin Blais wrote:
> Funny enough, the syntax does not barf and goes undetected:

Python generally allows trailing commas so that it is easier to write sequence 
literals which are appended to later.

There's also the fact that a trailing comma is used to make a 1-element tuple 
- so it could be said that the exception is actually that the comma after the 
last item can be optionally left out when there is more than one item in the 
sequence :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com
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