[Python-Dev] Fwd: Partial function application 'from the right' (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sun Feb 1 02🔞51 CET 2009


Ludvig Ericson wrote:

Begin forwarded message:

From: Ludvig Ericson <ludvig at lericson.se> Or even

… = partial.skip splitone = partial(str.split, …, 1)

That won't work:

... = 1 File "", 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 | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list