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 ronaldoussoren
Recipients georg.brandl, ronaldoussoren
Date 2009-12-24.11:54:38
SpamBayes Score 1.603696e-10
Marked as misclassified No
Message-id <1261655681.25.0.454963458841.issue7574@psf.upfronthosting.co.za>
In-reply-to
Content
Include/unicodeobject.h includes prototypes for PyUnicode_FromFormat and 
PyUnicode_FromFormatV in both 2.6 and 2.7, but those functions are not 
included in the documention.

And worse, the implementation contains bugs: the %R format code tries to 
include the repr() of an object and blindly assumes that the result of 
PyObject_Repr is a unicode string. In the 2.x tree PyObject_Repr usually 
(but not allways) returns a regular string (str instead of unicode).

The same problem is present in the implementation of %S.

For the %U and %V formats the code does typechecking in an assert 
statement rather than always testing and bailing out using a NULL result 
from the function.
History
Date User Action Args
2009-12-24 11:54:41ronaldoussorensetrecipients: + ronaldoussoren, georg.brandl
2009-12-24 11:54:41ronaldoussorensetmessageid: <1261655681.25.0.454963458841.issue7574@psf.upfronthosting.co.za>
2009-12-24 11:54:39ronaldoussorenlinkissue7574 messages
2009-12-24 11:54:38ronaldoussorencreate