[Python-Dev] cpython (2.7): note Ellipsis syntax (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 31 01:44:30 CEST 2011
- Previous message: [Python-Dev] cpython (2.7): note Ellipsis syntax
- Next message: [Python-Dev] cpython (2.7): note Ellipsis syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] cpython (2.7): note Ellipsis syntax
- Next message: [Python-Dev] cpython (2.7): note Ellipsis syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]