[New-bugs-announce] [issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument
Nick Coghlan
report at bugs.python.org
Wed Feb 22 02:54:10 CET 2012
New submission from Nick Coghlan <ncoghlan at gmail.com>:
Currently, setting maxsplit for the default "any whitespace" behaviour requires the following cryptic incantation:
'do re mi fa'.split(None, 1)
That would be significantly more comprehensible as:
'do re mi fa'.split(maxsplit=1)
(I noticed this when trying to figure out why http://hyperpolyglot.org/scripting#split-notes resorted to using the re module to achieve this)
----------
components: Interpreter Core
messages: 153920
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: Allow "maxsplit" argument to str.split() to be passed as a keyword argument
type: enhancement
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14081>
_______________________________________
More information about the New-bugs-announce
mailing list