This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ncoghlan
Date 2012-02-22.01:54:09
SpamBayes Score 0.0703316
Marked as misclassified No
Message-id <1329875650.41.0.375574316124.issue14081@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2012-02-22 01:54:10ncoghlansetrecipients: + ncoghlan
2012-02-22 01:54:10ncoghlansetmessageid: <1329875650.41.0.375574316124.issue14081@psf.upfronthosting.co.za>
2012-02-22 01:54:09ncoghlanlinkissue14081 messages
2012-02-22 01:54:09ncoghlancreate