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/2015-August/141225.html below:

[Python-Dev] PEP needed for http://bugs.python.org/issue9232 ?

[Python-Dev] PEP needed for http://bugs.python.org/issue9232 ?Chris Angelico rosuav at gmail.com
Tue Aug 11 17:03:38 CEST 2015
On Wed, Aug 12, 2015 at 12:46 AM, R. David Murray <rdmurray at bitdance.com> wrote:
> (If you wanted to fix an 'oops' trailing comma syntax issue, I'd vote for
> disallowing trailing commas outside of ().  The number of times I've
> ended up with an unintentional tuple after converting a dictionary to a
> series of assignments outnumbers both of the above :)  Note, I am *not*
> suggesting doing this!)

Outside of any form of bracket, I hope you mean. The ability to leave
a trailing comma on a list or dict is well worth keeping:

func = {
    "+": operator.add,
    "-": operator.sub,
    "*": operator.mul,
    "/": operator.truediv,
}

ChrisA
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