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 Kay.Hayen
Recipients Kay.Hayen
Date 2016-09-02.16:45:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1472834737.57.0.822205168917.issue27942@psf.upfronthosting.co.za>
In-reply-to
Content
Consider this:

def defaultKeepsIdentity(arg = "str_value"):
    print(arg is "str_value")

defaultKeepsIdentity()

This has been outputing "True" on every Python release I have seen so far, but not so on 3.6.0a4. Normally string values come from a "co_const" and will be "is" identical if used as literals in a module, but no longer in this case.

This seems wasteful at best, needlessly increasing the number of strings in usage. 

Yours,
Kay
History
Date User Action Args
2016-09-02 16:45:37Kay.Hayensetrecipients: + Kay.Hayen
2016-09-02 16:45:37Kay.Hayensetmessageid: <1472834737.57.0.822205168917.issue27942@psf.upfronthosting.co.za>
2016-09-02 16:45:37Kay.Hayenlinkissue27942 messages
2016-09-02 16:45:37Kay.Hayencreate