Mike Graham added the comment:
Line 13464 of unicodeobject.c is
if (Py_TYPE(args)->tp_as_mapping && !PyTuple_Check(args) &&
!PyUnicode_Check(args))
Too lazy to check, but don't user-created types have a tp_as_mapping? If so, I
think it mistakes Foo() for a dict.
----------
nosy: +Mike.Graham
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15801>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com