Home
____ ha modificato questa pagina 6 anni fa

Comparator

When bug exists only in one branch but visually whole code flow is the same could be useful to look at the differency between classes in different branches: green and red

This tool can extract source code of class including inheritance with metainformation about methods, like overriding (shadowing), parameters and attributes using standard python toolbox, namely the inspect module.

Technical details

Under the hood are: Sqlite database which holds information about different states of the class, methods and attributes. Desired class are constructed from the parts via traversing mro and extracting their source code. Then, hash of the code generated and basing on that conclusion could be made: if two classes are basicly the same.