Movatterモバイル変換


[0]ホーム

URL:


homepage

Message268470

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorterry.reedy
Recipientsgbarnabic, serhiy.storchaka, terry.reedy
Date2016-06-13.20:23:08
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<1465849389.02.0.432957436767.issue26386@psf.upfronthosting.co.za>
In-reply-to
Content
LGTM, but after applying to all 3, leave open (or open new issue) to replace patch in 3.6  (before beta 1).Change signature to *items.  That will automatically make a single string become a len 1 tuple.  For selection (list the 4 selops and) add a note.  "For back compatibility, one may also pass a single tuple (or list?) of items." and Version Changed.  For 4 derivatives, 'See selection.' In the code, instead add (untested):    if len(items) == 1:  # Remove after deprecation.        item0 = items[0]        if not isinstance(items[0], isinstance(str)):            raise DeprecationWarning(                 <level arg>                 "The option of passing multiple items as a tuple "                 "rather than as multiple items is deprecated and "                 "will be removed in 2020 or later.")            items = items0  # or more processing if lists were allowedRevise test accordingly.
History
DateUserActionArgs
2016-06-13 20:23:09terry.reedysetrecipients: +terry.reedy,serhiy.storchaka,gbarnabic
2016-06-13 20:23:09terry.reedysetmessageid: <1465849389.02.0.432957436767.issue26386@psf.upfronthosting.co.za>
2016-06-13 20:23:09terry.reedylinkissue26386 messages
2016-06-13 20:23:08terry.reedycreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp