Ludvig Ericson wrote:
> Begin forwarded message:
>> From: Ludvig Ericson <lud...@lericson.se>
>> Or even
>>
>> … = partial.skip
>> split_one = partial(str.split, …, 1)

That won't work:

>>> ... = 1
  File "<stdin>", line 1
SyntaxError: can't assign to Ellipsis

Like None/True/False, "..." is a constant that can't be modified (you
can assign to the *name* Ellipsis, but the "..." syntax will always
refer to the specific object).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncogh...@gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to