Ticket #207 (closed enhancement: fixed)

Opened 7 months ago

Last modified 1 month ago

Add support for Python docstrings

Reported by: robin@ohloh.net Assigned to:
Priority: like Milestone: current
Component: parser Version: current
Severity: bad Keywords:
Cc:

Description

Docstrings should be counted as comments, not code.

Change History

03/05/2008 12:28:21 AM changed by ArneBab

I thought I should give some more info on this (this may be redundant, but I'll write it just in case it's useful).

A docstring starts with three "

It only ends with three "

Anything inside is a comment.

For example:

"""Here the docstring begins.

"this is still inside the docstring"

'this is also inside the doctsring'

  • As well as this list item

>>> # and this doctest "with its result"

And this rather useless line :)

Here the docstring ends."""

By the way: The docstrings are often used for automatic APIdoc creation wia epydoc.

03/05/2008 12:29:22 AM changed by ArneBab

Correction:

# and this doctest

"with its result"

I forgot to add the blank line for this wiki.

03/28/2008 06:00:16 PM changed by robin@ohloh.net

  • owner deleted.

07/07/2008 02:18:25 PM changed by robin@ohloh.net

  • status changed from new to closed.
  • resolution set to fixed.

This has been added with the new Ragel parser. The sample above parses properly.