[Python-ideas] crazy ideas

Aaron Brady castironpi at comcast.net
Tue May 22 14:55:57 CEST 2007


> -----Original Message-----
> From: python-ideas-bounces at python.org [mailto:python-ideas-
> bounces at python.org] On Behalf Of Adam Atlas
> 
> On 22 May 2007, at 06.00, Aaron Brady wrote:
> > Annotated list callers:
> >
> > q = d[a,b,c] is deque
> 
> Won't work... how could that be distinguished from getting an item of
> a dictionary named `d` keyed by the tuple (a, b, c)?

Doh.

In syntax design, the grouping characters go pretty quickly.  d<a,b,c> is
-almost- ambiguous[1], perhaps that?

[1] ...with (d<a),b,(c>e) a<b,c,d>e but isn't.




More information about the Python-ideas mailing list