thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Docstrings not parsed if comments are not triple quoted #462

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a function its docstring in single quotes.
2. The syntax highlighting is not the same as with triple-quoted strings.
3. The autocompletion for calling the function fails to display the docstring.

What is the expected output? What do you see instead?

Expect the single or double-quoted docstrings to work the same as the 
triple-quoted ones.  

What version of the product are you using? On what operating system?

PyScripter 2.1.4.0 on Windows 7

Please provide any additional information below.

From what I can see, Python treats all three kinds of docstrings as 
semantically equivalent, (you can observe fun.__doc__), so PyScripter should do 
the same.

Original issue reported on code.google.com by cspwc...@gmail.com on 31 Dec 2010 at 3:09

GoogleCodeExporter commented 9 years ago
According to http://www.python.org/dev/peps/pep-0257/ even one line docstrings 
should be triple quoted.  Hence I do not plant to "fix" this.

Original comment by pyscripter on 6 Jan 2011 at 6:50