-1 on deprecating the syntax.  the tuple(['hello']) syntax is much much slower, a factor of 20x here.  trailing ,s when you only have one item are how python tuple syntax is defined allowing them to use ()s instead of needing other tokens.<br>
<br>gps<br><br><div><span class="gmail_quote">On 3/12/08, <b class="gmail_sendername">Leszek Dubiel</b> <<a href="mailto:Leszek.Dubiel@dubielvitrum.pl">Leszek.Dubiel@dubielvitrum.pl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  

<div bgcolor="#ffffff" text="#000000">
<font face="monospace"><br>
<br>
I would suggest to deprecate one-element tuple construction with colon
at the end, because this looks ugly, is not self-evident for other
people reading code, looks like some type of trickery. <br>
<br>
It would prefer tutorial (</font><font face="monospace"><a href="http://docs.python.org/dev/3.0/tutorial/datastructures.html#tuples-and-sequences" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://docs.python.org/dev/3.0/tutorial/datastructures.html#tuples-and-sequences</a>)
to use instead of </font><br>
<font face="monospace"><br>
</font>
<blockquote><font face="monospace">>>> ('hello',)</font><br>
  <font face="monospace">('hello',)</font><br>
</blockquote>
<font face="monospace"><br>
<br>
this syntax:<br>
<br>
</font>
<blockquote><font face="monospace">>>> tuple(['hello'])</font><br>
  <font face="monospace">('hello',)</font><br>
</blockquote>
<font face="monospace">.<br>
<br>
<br>
<br>
PS. <br>
<br>
Funcitons set(), tuple(), list() and dict() are good!<br>
<br>
Syntax<br>
    <br>
    myset = {'a', 'b'} <br>
<br>
is absolutely perfect too!<br>
<br>
<br>
<br>
<br>
</font>
</div>

<br>_______________________________________________<br>
Python-ideas mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
<br></blockquote></div><br>