language lawyering - doc strings
gcash
gcash at luncheonmeat.cfl.rr.com
Fri Aug 31 19:21:51 EDT 2001
"Tony J Ibbs (Tibs)" <tony at lsl.co.uk> writes:
> gcash wrote:
> > I know this is being pedantic, but where's the syntactical spec for
> > documentation strings in the language reference?
>
> Hmm - docstrings are just that - strings - so one is allowed to put
> whatever text one likes in there, and I believe this will always be the
> case. This is a Good Thing, notwithstanding my next points...
Thanks, but I was looking for what allowed me to put a string as the first
statement of a function or class.
I know I *can*, but not because of anything the language spec says.
-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