[Twisted-Python] [bug] web.resource.Resource.render.__doc__

Kevin Turner acapnotic at twistedmatrix.com
Tue Aug 7 06:19:26 EDT 2001

My, that was annoying.
Resource.render.__doc__ says:

> Render a given resource.  
> The return value of this method will be the rendered page, unless the
> return value is None, in which case it is this class's responsability
> to write the results to request.write(data), then call
> request.finish().

however, the magic value is not 'None', but web.server.NOT_DONE_YET,
a constant which is *NOT* defined as None.

So, which'll it be, boys?  Is the docstring wrong, or is the code?

More information about the Twisted-Python mailing list