By adding a before the closing brace of the tuple. Python allow this to disambiguate between braced expression and tuple<br><br>>>> type( (1,) )<br><type 'tuple'><br><br><br><div class="gmail_quote">
2009/12/4 Петров Александр <span dir="ltr"><<a href="mailto:gmdidro@gmail.com">gmdidro@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
How could I tell Python that "(1)" is not an integer, but an one-arity tuple ?<br>
<br>
Thank you,<br>
Alexander Petrov<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>