New submission from Nick Coghlan <ncogh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14081>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to