[Patches] [ python-Patches-1503556 ] Allow Empty Subscript List Without Parentheses

SourceForge.net noreply at sourceforge.net
Sun Jun 18 21:30:18 CEST 2006


Patches item #1503556, was opened at 2006-06-09 14:47
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1503556&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Noam Raphael (noamr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow Empty Subscript List Without Parentheses

Initial Comment:
This is a reference implementation of PEP XXX, which
makes writing "x[]" equivalent to writing "x[()]".

It passes the Python test suite, but currently doesn't
provide additional tests or documentation.

The attached diff doesn't include changes to
auto-generated files.

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-06-18 19:30

Message:
Logged In: YES 
user_id=849994

Rejected per Guido's pronouncement on python-dev.

----------------------------------------------------------------------

Comment By: Noam Raphael (noamr)
Date: 2006-06-17 19:18

Message:
Logged In: YES 
user_id=679426

Attached is an improved patch, which does exactly the same
thing but with less code. It shows that, at least from the
implementation's point of view, an empty tuple for an empty
subscript list works like an n-tuple for an n-sized
subscript list.

You can also see it in http://python.pastebin.com/715221


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1503556&group_id=5470


More information about the Patches mailing list