Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Conversation

@ankostis
Copy link

@ankostis ankostis commented Jun 8, 2018

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 the operator.methodcaller builtin to selectively use the appropriate method on each PY2/PY3 version iter().
  • xrange(): just make it range(), it was just 10 items in both cases.

@ankostis ankostis changed the title Py35: replace all iteritems() Py35: make code PY35+ compatible Jun 8, 2018
@ankostis ankostis force-pushed the py35 branch 4 times, most recently from 02893b9 to a7e3342 Compare June 8, 2018 23:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant