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 $
(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