[Python-ideas] Allow "assigning" to Ellipse to discard values.

Stephan Hoyer shoyer at gmail.com
Tue Feb 10 22:24:51 CET 2015


The usual convention for unused results is to assign to the variable "_".
That's actually two less characters than "...", and has the advantage of
requiring no new syntax or explicit support. Is there any particular reason
why that would not be suitable for these use cases? It looks like _ could
be a drop in replacement for ... in your examples.

Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150210/790f1693/attachment.html>


More information about the Python-ideas mailing list