language lawyering - doc strings

gcash gcash at luncheonmeat.cfl.rr.com
Fri Aug 31 19:23:19 EDT 2001


"Tim Peters" <tim.one at home.com> writes:

> [gcash]
> > I know this is being pedantic, but where's the syntactical spec for
> > documentation strings in the language reference?
> 
> I don't think there is one!  They're ordinary string literals, of course,
> and must be the first non-blank non-comment statement at the top of a
> module, or following a class or def stmt.

Yah, I know... I just noticed that nowhere did it say I could do this.

And heck, until now I didn't know I could put one at the top of a module.

Thanks...

-gc

-- 
Favorite god: Thor               Favorite song: "Hammer Time"
Motto: "Use a bigger hammer"     In my toolbox: 1 screwdriver, 6 hammers.
Often heard saying: "... then I used a hammer on it"



More information about the Python-list mailing list