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 tim.peters
Recipients arigo, brandtbucher, josh.r, pablogsal, rhettinger, serhiy.storchaka, tim.peters
Date 2019-03-14.00:00:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552521622.14.0.632047768361.issue36229@roundup.psfhosted.org>
In-reply-to
Content
Josh, I agree - but do read Armin's response.  The string hack was done inside ceval.c, where we have extraordinary knowledge of context.  Adding similar hacks inside Python C API functions seems to be a non-starter - they can't magically start mutating arguments based on refcounts alone.  Armin's dead-simple example is compelling.

So if this is desirable at all, it would need to get hairier.
History
Date User Action Args
2019-03-14 00:00:22tim.peterssetrecipients: + tim.peters, arigo, rhettinger, serhiy.storchaka, josh.r, pablogsal, brandtbucher
2019-03-14 00:00:22tim.peterssetmessageid: <1552521622.14.0.632047768361.issue36229@roundup.psfhosted.org>
2019-03-14 00:00:22tim.peterslinkissue36229 messages
2019-03-14 00:00:22tim.peterscreate