Message90009
IMO, the *_FromFormat functions are wrong to decide whether the args
object is a mapping. the code is:
if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) &&
!PyObject_TypeCheck(args, &PyBaseString_Type))
dict = args;
But heap types always fill tp_as_mapping: it points to
PyHeapTypeObject.as_mapping, whose members may be NULL...
PyMapping_Check() would be more appropriate. |
|
| Date |
User |
Action |
Args |
| 2009-07-02 12:23:36 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, loewis, msaghaei |
| 2009-07-02 12:23:36 | amaury.forgeotdarc | set | messageid: <1246537416.36.0.293289564581.issue6396@psf.upfronthosting.co.za> |
| 2009-07-02 12:23:29 | amaury.forgeotdarc | link | issue6396 messages |
| 2009-07-02 12:23:28 | amaury.forgeotdarc | create | |
|