On Wed, May 17, 2017 at 12:32:47PM -0700, Volker Braun wrote:
> I'd try to avoid the entire construct; Its the linguistic equivalent of
> if condition:
> return True
> else:
> return False
> Just say "Test condition" in the docstring.
Yes, I agree!!! If we want to stick to the "Return ..." idiom, an
alternative is to say "Return whether <condition>".
I guess that's slightly off topic though; I imagine this sentence was
just meant as one example where ``True`` could appear in our doc.
For how to typeset True/False/None/... when we need to spell them out
explicitly, as already suggested, I would be in favor of :obj:`True`.
Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" <
nth...@users.sf.net>
http://Nicolas.Thiery.name/