def isinstance(val, types):
if types is int:
types = (int, long)
elif type(types) is tuple and int in types:
types += (long,)
return _builtin_isinstance(val, types)
# functools.lru_cache is Python 3.2+ only.
# /@functools.lru_cache()/d
# int().to_bytes is Python 3.2+ only.
# s/\(\w+\)\.to_bytes(/_int_to_bytes(\1, /
评论列表
文章目录