[Python-3000] Adding __format__ to object
p.f.moore at gmail.com
Thu Aug 16 17:32:43 CEST 2007
On 16/08/07, Eric Smith <eric+python-dev at trueblade.com> wrote:
> Christian Heimes wrote:
> > look at Objects/typeobject.c and grep for PyMethodDef object_methods
> I should have mentioned that's among the things I've already tried.
> You don't see the methods in typeobject.c (__mro__, etc).
__mro__ is in type_members (at the top of the file). You want
object_methods (lower down). All it currently defines is __reduce__
and __reduce_ex__ (which are in dir(object()).
I've not tested (or ever used) this, so I could be wrong, of course.
More information about the Python-3000