Skip to content

Instantly share code, notes, and snippets.

@mahmoud
Created April 10, 2015 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoud/204589d3e8278467b003 to your computer and use it in GitHub Desktop.
Save mahmoud/204589d3e8278467b003 to your computer and use it in GitHub Desktop.
mro_items on pypy
046 >>> sorted([k for k, v in mro_items(int) if not (callable(v) or isinstance(v, type(int.__int__)))])
Expected:
['__class__', '__doc__', '__doc__', 'denominator', 'imag', 'numerator', 'real']
Got:
['__class__', '__doc__', '__doc__', '__new__', '__new__', '__subclasshook__', 'denominator', 'imag', 'numerator', 'real']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment