summaryrefslogtreecommitdiff
path: root/__init__.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-04-22 17:33:32 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-04-22 17:33:32 +0200
commit86d41e5feb1bfc094977a8759bd5bd4cb5de3524 (patch)
tree5145d012cd36cfdcd4ec67d650f6f4ddbb7d0418 /__init__.py
parent8e459217b0f6561e5e1e48b7e343f30cf44532af (diff)
downloadlogilab-common-86d41e5feb1bfc094977a8759bd5bd4cb5de3524.tar.gz
implements __repr__ on null object so it can be used as argument marker and have nice output in generated documentation
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/__init__.py b/__init__.py
index 25e2cda..e408639 100644
--- a/__init__.py
+++ b/__init__.py
@@ -50,6 +50,8 @@ class dictattr(dict):
raise KeyError(attr)
class nullobject(object):
+ def __repr__(self):
+ return '<nullobject>'
def __nonzero__(self):
return False