Menu

#39 python-mode docstrings syntax bug

v1.0 (example)
open
nobody
None
5
2007-08-17
2007-08-17
Border
No

These Emacs parsing functions are configurable, but not quite configurable enough to capture all of Python's rules.
like:

print """ "Hi!" I'm a doc string"""
print ''' 'Hi!' I'm a doc string'''
print """ ''' "Hi!" I'm a doc string ''' """
print ''' """ "Hi!" I'm a doc string """ '''

something like

"""
"Hi!" I'm a doc string
"""

Emacs "sees" it as a sequence of 4 strings with some crap in the middle:

""
"\n "
Hi!
" I'm a doc string\n "
""

Emacs : GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
of 2007-06-02 on RELEASE
Package: python-mode $Revision: 4.75 $

current state:

(setq
py-python-command "python"
py-indent-offset 4
py-block-comment-prefix "##"
py-temp-directory "c:/DOCUME~1/new/LOCALS~1/Temp"
py-beep-if-tab-change t
)

--
Blog: www.borderj.cn

Border

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.