[Dev] use of triple quotes for comments

Mike Taylor bear at code-bear.com
Thu Sep 22 16:43:57 PDT 2005


Unfortunately there is only one comment type in python - the single 
line comment so multi-line comments will have to have # in front of 
each line.

	# comments that
          # span multiple lines
          # will be troublesome - yep


On Sep 22, 2005, at 7:17 PM, Donn Denman wrote:

> So, what will we use for multi-line comments that are not supposed to 
> be doc-strings?
>
> On Sep 22, 2005, at 1:16 PM, Mike Taylor wrote:
>
>> Ok, it's been a couple of days and I've seen 3 yeas, 0 nays and 0 
>> don't cares
>>
>> I'll take that as a yes vote and start doing the changes tonight.  
>> I'll be doing the changes in chunks to minimize the impact on 
>> everyone.
>>
>> thanks,
>>
>> On Sep 20, 2005, at 1:49 PM, Mike Taylor wrote:
>>
>>
>>> As I've been going thru and fixing epydoc generation errors I have 
>>> run across a "style" of using triple quotes for comments:
>>>
>>> def foo():
>>>     """
>>>     this is the doc string
>>>     """
>>>     a = 1
>>>     """this is a comment - not even multi-line"""
>>>     b = 2
>>>     """another comment
>>>     and it happens to be multi-line"""
>>>
>>> Now I understand this may be a style issue, but I would like to 
>>> change all non-docstring uses of triple quotes to a proper comment.
>>>
>>> yea? nay? don't care?
>>>
>>> ---
>>> Bear
>>>
>>> Build and Release Engineer
>>> Open Source Applications Foundation (OSAF)
>>> bear at osafoundation.org
>>> http://www.osafoundation.org
>>>
>>> bear at code-bear.com
>>> http://code-bear.com
>>>
>>> PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29
>>>
>>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>>
>>> Open Source Applications Foundation "Dev" mailing list
>>> http://lists.osafoundation.org/mailman/listinfo/dev
>>>
>>>
>> ---
>> Bear
>>
>> Build and Release Engineer
>> Open Source Applications Foundation (OSAF)
>> bear at osafoundation.org
>> http://www.osafoundation.org
>>
>> bear at code-bear.com
>> http://code-bear.com
>>
>> PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29
>>
>>
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>>
>> Open Source Applications Foundation "Dev" mailing list
>> http://lists.osafoundation.org/mailman/listinfo/dev
>>
>
>
---
Bear

Build and Release Engineer
Open Source Applications Foundation (OSAF)
bear at osafoundation.org
http://www.osafoundation.org

bear at code-bear.com
http://code-bear.com

PGP Fingerprint = 9996 719F 973D B11B E111  D770 9331 E822 40B3 CD29


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osafoundation.org/pipermail/dev/attachments/20050922/6d7e2799/PGP.pgp


More information about the Dev mailing list