[Pythonmac-SIG] Re: string bug?
Bob Ippolito
bob at redivi.com
Sat Jan 31 15:01:21 EST 2004
On Jan 31, 2004, at 2:43 PM, Keith Nemitz wrote:
>> Nested comments?
>
> {{ comment {{ nested comment }} }}
>
> very handy
>
> although {{ }} might not work in python. not sure if {} is used for
> anything but assigning empty dictionaries.
But uh.. why? What would it be handy for? What's wrong with using
strings for comments?
class MyClass:
"""
This is a big comment
"""
You could nest different kinds of comments, I guess, but I don't see
how that would ever be useful.
class MyClass:
"""
# this is a comment in a comment
"""
-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20040131/2e2f8601/smime.bin
More information about the Pythonmac-SIG
mailing list