[Python-Dev] Fwd: Partial function application 'from the right' (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sun Feb 1 02🔞51 CET 2009
- Previous message: [Python-Dev] Should execv() call _run_exitfuncs()? If not, should _run_exitfuncs() be private?
- Next message: [Python-Dev] Fwd: Partial function application 'from the right'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Should execv() call _run_exitfuncs()? If not, should _run_exitfuncs() be private?
- Next message: [Python-Dev] Fwd: Partial function application 'from the right'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]