added isDefaultValue

This commit is contained in:
Darren Ranalli 2006-06-05 20:56:05 +00:00
parent affc6a7348
commit 417ecf5bcb

View File

@ -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):