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 vstinner
Recipients loewis, vstinner
Date 2014-09-01.22:39:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409611190.39.0.820072774539.issue22324@psf.upfronthosting.co.za>
In-reply-to
Content
I would like to deprecate PyUnicode_AsUnicode(), see the issue #22271 for the rationale (hint: memory footprint).

To deprecate PyUnicode_AsUnicode(), we should stop using it internally.

The attached patch is a work-in-progress patch, untested on Windows (only tested on Linux). It gives an idea of how many files should be modified.

TODO:

* Modify posixmodule.c: I don't understand how the Argument Clinic generates the call to PyUnicode_AsUnicode() when the parameter type is declared as "unicode". What is the "unicode" type? Where is the code generating the call to PyUnicode_AsUnicode()?

* Modify a few other files.
History
Date User Action Args
2014-09-01 22:39:51vstinnersetrecipients: + vstinner, loewis
2014-09-01 22:39:50vstinnersetmessageid: <1409611190.39.0.820072774539.issue22324@psf.upfronthosting.co.za>
2014-09-01 22:39:50vstinnerlinkissue22324 messages
2014-09-01 22:39:50vstinnercreate