From 86d41e5feb1bfc094977a8759bd5bd4cb5de3524 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Thu, 22 Apr 2010 17:33:32 +0200 Subject: implements __repr__ on null object so it can be used as argument marker and have nice output in generated documentation --- __init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '__init__.py') 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 '' def __nonzero__(self): return False -- cgit v1.2.1