durusmail: quixote-users: Re: pydoc for quixote
pydoc for quixote
2003-10-21
2003-10-21
2003-10-21
2003-10-21
Re: pydoc for quixote
2003-10-22
2003-10-22
2003-10-27
Re: pydoc for quixote
Graham Fawcett
2003-10-22
David Binger wrote:
> I think the poundsign comments are gone before the ptl compiler
> gets involved, so it would be a big change to use them.
> It would, however, be nice.
>
> I think the solution could be some variant of 4), but what mark?
> d"foo"
> doc("foo")
> __doc__ = "foo"
> __doc__("foo")
> "foo",

I'd vote for __doc__ = "foo" (or '''foo''', etc.). It's valid, executable
Python; the semantics are near identical to Python's (save for a bit of
scoping); the intent is unambiguous and clear.

-- Graham



reply