mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added isDefaultValue
This commit is contained in:
parent
affc6a7348
commit
417ecf5bcb
@ -1992,6 +1992,9 @@ def safeRepr(obj):
|
|||||||
except:
|
except:
|
||||||
return '<** FAILED REPR OF %s **>' % obj.__class__.__name__
|
return '<** FAILED REPR OF %s **>' % obj.__class__.__name__
|
||||||
|
|
||||||
|
def isDefaultValue(x):
|
||||||
|
return x == type(x)()
|
||||||
|
|
||||||
class ScratchPad:
|
class ScratchPad:
|
||||||
"""empty class to stick values onto"""
|
"""empty class to stick values onto"""
|
||||||
def __init__(self, **kArgs):
|
def __init__(self, **kArgs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user