[Python-bugs-list] [ python-Feature Requests-514532 ] Add "eu#" parser marker
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 05 Mar 2002 08:47:12 -0800
Feature Requests item #514532, was opened at 2002-02-07 21:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=514532&group_id=5470
Category: Unicode
Group: None
Status: Open
Resolution: None
>Priority: 3
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: M.-A. Lemburg (lemburg)
>Summary: Add "eu#" parser marker
Initial Comment:
As requested by Jack Janssen:
"""
Recently, "M.-A. Lemburg" <mal@lemburg.com> said:
> How about this: we add a wchar_t codec to Python and the "eu#" parser
> marker. Then you could write:
>
> wchar_t value = NULL;
> int len = 0;
> if (PyArg_ParseTuple(tuple, "eu#", "wchar_t", &value, &len) < 0)
> return NULL;
I like it!
"""
The parser marker should return Py_UNICODE* instead of char* and work much like "et#" does now for
strings.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2002-02-17 00:11
Message:
Logged In: YES
user_id=21627
Because of the memory management issues, I don't think
having such a feature is desirable.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=355470&aid=514532&group_id=5470