mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
parent
37917369d5
commit
1e8ee9b380
45 changed files with 6 additions and 48 deletions
|
@ -1,5 +1,3 @@
|
|||
import sys
|
||||
|
||||
def is_instance(obj, klass):
|
||||
"""Version of is_instance that doesn't access __class__"""
|
||||
return issubclass(type(obj), klass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue