--- sphinx/ext/autodoc.py 2008-09-22 20:09:53.000000000 +0200 +++ autodoc-new.py 2008-09-22 20:10:10.000000000 +0200 @@ -305,6 +305,7 @@ if path: mod_cls = path else: + mod_cls = None # if documenting a class-level object without path, there must be a # current class, either from a parent auto directive ... if hasattr(env, 'autodoc_current_class'):