Ludvig Ericson wrote: > Begin forwarded message: >> From: Ludvig Ericson <[email protected]> >> 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 | [email protected] | Brisbane, Australia --------------------------------------------------------------- _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
