[Pythonmac-SIG] Re: string bug?
Bob Ippolito
bob at redivi.com
Sat Jan 31 15:37:13 EST 2004
On Jan 31, 2004, at 3:13 PM, Keith Nemitz wrote:
>
> On Jan 31, 2004, at 12:01 PM, Bob Ippolito wrote:
>
>>
>> You could nest different kinds of comments, I guess, but I don't see
>> how that would ever be useful.
>>
>
> I think of it as vitally useful. I'm always wanting to comment out a
> chunk of code and then comment out a bigger chunk later. And using
> comment strings is like using a screwdriver to open a paint can. Sure
> it works.... but doesn't that screw up the auto-documentation feature
> of python?
>
> {{
> bigger
> chunk
>
> {{
> chunk
> of
> code
> }}
>
> of
> code
> }}
#
# bigger chunk
#
#
# # chunk of code
# #
# #
# #
#
# of code
#
or...
if 0:
bigger chunk
if 0:
chunk of code
of code
Obviously, you would want your editor to support you with the first
one.. the second one is easy enough to do by hand.
-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/a8412731/smime.bin
More information about the Pythonmac-SIG
mailing list