summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/api.py b/source/api.py
index 99e636f..3d22d96 100644
--- a/source/api.py
+++ b/source/api.py
@@ -391,6 +391,9 @@ class Nitrate(object):
""" Use object id as the default hash. """
return self.id
+ def __repr__(self):
+ return "{0}({1})".format(self.__class__.__name__, self.id)
+
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Nitrate Methods
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~