Alexandre Vassalotti added the comment:
With PEP 393 implemented, there doesn't seem to anything left to be done here.
Closing as fixed.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
The PEP 393 changed the API:
#define _PyUnicode_AsString PyUnicode_AsUTF8
#define _PyUnicode_AsStringAndSize PyUnicode_AsUTF8AndSize
--
___
Python tracker rep...@bugs.python.org
Julian Andres Klode j...@jak-linux.org added the comment:
The problem I see here is that there is no public way to simply get a C string
from a unicode object similar to PyBytes_AsString() for bytes. That's bad
because we don't want to rewrite the whole code to duplicate strings all the
time
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
components: +Interpreter Core
stage: - needs patch
versions: +Python 3.3 -Python 3.0, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2799
Marc-Andre Lemburg m...@egenix.com added the comment:
Updating the ticket title to what we actually have in SVN (I had renamed the
APIs to mark them as private to the interpreter some time ago).
--
title: Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add