diff --git a/doc/make_constants.py b/doc/make_constants.py
index 962b4924deb872e689f836e8301cc37354d344c6..f4e540c6671f4ef87aa1d5a2a2aa330eff6e0dde 100644
--- a/doc/make_constants.py
+++ b/doc/make_constants.py
@@ -196,7 +196,7 @@ def doc_class(cls):
 
     cls_const_ext = const_ext_lookup.get(cls, {})
     for i in sorted(dir(cls)):
-        if not i.startswith("_")  and not i == "to_string":
+        if not i.startswith("_")  and not i in ["to_string", "names", "values"]:
             print "    .. attribute :: %s" % i
             value = getattr(cls, i)