Andreas Roehler | 11 Dec 2009 09:30
Picon

Re: Problem with Multi-Line Comments

Kent Borg wrote:
> Hello,
> 
> I recently started playing with using docstrings more fully and
> discovered a problem.  I can't use apostrophes in multi-line comments
> without confusing python-mode.
> 
> For example:
> 
>> def my_sqrt(x):
>>     '''Computes squareroot.
>>
>>     Note: This function doesn't know about imaginary numbers, to it
>>     can't handle negative parameters.
>>     '''
> 
> It gets all confused by the single quotes. 
> 
> Am I misunderstanding something?
> 
> 
> Thanks,
> 
> -kb

Hi,

sounds like a well known bug of python-mode.el.
Can reproduce it with emacs -Q.
Unfortunately not with my common environment, telling me
python-mode.el version 351 is in use. See screenshot attached.
Strange.

BTW which system/version/emacs you are using?

Andreas

_______________________________________________
Python-mode mailing list
Python-mode <at> python.org
http://mail.python.org/mailman/listinfo/python-mode

Gmane