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 vstinner
Recipients ajaksu2, laughingboy0, vstinner
Date 2009-03-30.10:51:54
SpamBayes Score 8.127242e-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:57vstinnersetrecipients: + vstinner, ajaksu2, laughingboy0
2009-03-30 10:51:56vstinnersetmessageid: <1238410316.68.0.521842162188.issue1583863@psf.upfronthosting.co.za>
2009-03-30 10:51:54vstinnerlinkissue1583863 messages
2009-03-30 10:51:54vstinnercreate