Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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