no inline comments

Lawrence Oluyede raims at dot.com
Mon Mar 8 17:42:26 EST 2004


In data Sun, 7 Mar 2004 15:47:54 -0500, John Roth ha scritto:

> That's not a comment. It's a string. Try putting
> it in the middle of another statement and you'll
> see the difference.
> 
> The reason it looks like a comment is that a string,
> all by itself, is a perfectly valid expression, so you
> can put one wherever you could put a statement.

Yeah you're right but sometimes you can use """blahblah"""
as a comment... and to be honest i didn't ever need a /* */ comment
in Python

-- 
Lawrence
"ain't nothin' but fun."



More information about the Python-list mailing list