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/112703.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 syntaxBenjamin Peterson benjamin at python.org
Sat Jul 30 19:25:23 CEST 2011
2011/7/30 Georg Brandl <g.brandl at gmx.net>:
> On 07/30/11 17:00, benjamin.peterson wrote:
>> http://hg.python.org/cpython/rev/402f94edf11b
>> changeset:   71637:402f94edf11b
>> branch:      2.7
>> user:        Benjamin Peterson <benjamin at python.org>
>> date:        Sat Jul 30 09:59:12 2011 -0500
>> summary:
>>   note Ellipsis syntax
>>
>> files:
>>   Doc/library/stdtypes.rst |  2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>>
>> diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
>> --- a/Doc/library/stdtypes.rst
>> +++ b/Doc/library/stdtypes.rst
>> @@ -2930,7 +2930,7 @@
>>  supports no special operations.  There is exactly one ellipsis object, named
>>  :const:`Ellipsis` (a built-in name).
>>
>> -It is written as ``Ellipsis``.
>> +It is written as ``Ellipsis`` or ``...``.
>
> In 2.7, this is not true; ``...`` only works in slices there.

I know, but why would you use Ellipsis outside of slices?



-- 
Regards,
Benjamin
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