Message84534
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. |
|
Date |
User |
Action |
Args |
2009-03-30 10:51:57 | vstinner | set | recipients:
+ vstinner, ajaksu2, laughingboy0 |
2009-03-30 10:51:56 | vstinner | set | messageid: <1238410316.68.0.521842162188.issue1583863@psf.upfronthosting.co.za> |
2009-03-30 10:51:54 | vstinner | link | issue1583863 messages |
2009-03-30 10:51:54 | vstinner | create | |
|