Open ankostis opened 6 years ago
pycallgraph seems to work on Python3.5+ except for this little Python-2 annoyance: dictionary items are accessed with dropped method d.iteritems().
d.iteritems()
Had to replace just 2 things:
iteritems()
operator.methodcaller
iter()
xrange()
range()
pycallgraph seems to work on Python3.5+ except for this little Python-2 annoyance: dictionary items are accessed with dropped method
d.iteritems()
.Had to replace just 2 things:
iteritems()
: used theoperator.methodcaller
builtin to selectively use the appropriate method on each PY2/PY3 versioniter()
.xrange()
: just make itrange()
, it was just 10 items in both cases.