HOW TO build object graph or get superclasses list for self.__class__ ?

James Mills prologic at shortcircuit.net.au
Fri Apr 23 05:54:18 CEST 2010


2010/4/22  <forth at km.ru>:
> In production system I'll have 100+ subclasses and you code is not appliable ;)
> But -- thanks for __bases__ , it's thing I needed and py helpfile does not give me __bases__ easy

Feel free to rewrite my edges(...) function so it does not use tail
recursion and therefore does not exceed python's limited recursion
depth (configurable btw).

cheers
James



More information about the Python-list mailing list