homepage

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 lemburg
Recipients
Date 2002年03月07日.18:01:05
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=38388
Ok, I've had a look at the patch. 
It looks good except for the overly 
complicated implementation of the 
unicode-escape codec. 
Even though there's a bit of code duplication, 
I'd prefer to have two separate functions here: 
one for the standard char* pointer type and 
another one for Py_UNICODE*, ie.
PyUnicode_DecodeUnicodeEscape(char*...)
and
PyUnicode_DecodeUnicodeEscapeFromUnicode(Py_UNICODE*...)
This is easier to support and gives better
performance since the compiler can optimize
the two functions making different 
assumptions.
You'll also need to include a name mangling
at the top of the header for the new API.
History
Date User Action Args
2007年08月23日 15:11:27adminlinkissue526840 messages
2007年08月23日 15:11:27admincreate

AltStyle によって変換されたページ (->オリジナル) /