[Python-Dev] cpython (2.7): note Ellipsis syntax

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 31 01:44:30 CEST 2011


Benjamin Peterson wrote:

> why would you use Ellipsis outside of slices?

I could imagine someone wanting to use it as part of a
function API. For example,

    print(a, b, c, ...)

would have been a nice way to tell print() not to put
a newline on the end.

-- 
Greg


More information about the Python-Dev mailing list