[Pydev-users] [pydev - Users] RE: Comment colour in pydev
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2008-05-27 21:50:29
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4990611 By: fabioz If you use ''' ''' in python, that's a string in the same way that ' ' (so, you can assign it to a var, etc). In functions / classes, the first string is considered a docstring and is assigned to the function / class (but it could be a string with ' ' also, and doesn't necessarily need a ''' '''). So, ''' ''' is actually a string and # is the only comment that python has (there are no multi-line comments in python). Cheers, Fabio ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |