A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-July/112715.html below:

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

[Python-Dev] cpython (2.7): note Ellipsis syntax [Python-Dev] cpython (2.7): note Ellipsis syntaxAntoine 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4