Guest User

Untitled

a guest
Jul 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --- builtin.py 2011-01-20 14:02:55.000000000 -0500
  2. +++ builtin.py.new 2011-01-20 14:02:51.000000000 -0500
  3. @@ -147,6 +147,16 @@
  4.  
  5. def builtin_isinstance(s_obj, s_type, variables=None):
  6. r = SomeBool()
  7. +
  8. + if isinstance(s_type, SomeTuple):
  9. + for t in s_type.items:
  10. + r = builtin_isinstance(s_obj, t, variables)
  11. + if r.const:
  12. + return r
  13. +
  14. + r.const = False
  15. + return r
  16. +
  17. if s_type.is_constant():
  18. typ = s_type.const
  19. if issubclass(typ, pypy.rlib.rarithmetic.base_int):
Add Comment
Please, Sign In to add comment