Author haypo
Recipients ajaksu2, haypo, laughingboy0
Date 2009-03-30.10:51:54
SpamBayes Score 8.12724e-05
Marked as misclassified No
Message-id <1238410316.68.0.521842162188.issue1583863@psf.upfronthosting.co.za>
In-reply-to
Content
Case "S" (type str): "%s" uses _PyObject_Str() which checks the object 
type with PyString_CheckExact().

Case "U" (type unicode) "%s" uses PyUnicode_Check() and then calls 
PyUnicode_Format(). PyUnicode_Format() uses PyUnicode_Check() to check 
the object object. It should uses PyUnicode_CheckExact() instead.

xxx_CheckExact() is different than xxx_Check(): exact is only true for 
the base type, whereas the the second is also true for subclass.
History
Date User Action Args
2009-03-30 10:51:57hayposetrecipients: + haypo, ajaksu2, laughingboy0
2009-03-30 10:51:56hayposetmessageid: <1238410316.68.0.521842162188.issue1583863@psf.upfronthosting.co.za>
2009-03-30 10:51:54haypolinkissue1583863 messages
2009-03-30 10:51:54haypocreate