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

Antoine Pitrou solipsis at pitrou.net
Sun Jul 31 15:07:06 CEST 2011


On Sat, 30 Jul 2011 23:47:36 -0700
Raymond Hettinger <raymond.hettinger at gmail.com> wrote:
> > 
> > (Also, there must have been some reason to make "..." available everywhere
> > for Python 3.)
> > 
> 
> It's really nice for stub functions:
> 
> def foo(x):
>     ...

Using a docstring looks a lot less hackish (and it encourages you to
write a doc!):

def foo(x):
    """Some stub function."""






More information about the Python-Dev mailing list