all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Python doc string with three double quotes
@ 2013-09-11 16:48 Scott Reynolds
  2013-09-11 18:43 ` Andreas Röhler
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Reynolds @ 2013-09-11 16:48 UTC (permalink / raw)
  To: help-gnu-emacs

Having an issue adding a doc string to my modules, functions, classes and
methods in python. I am using Emacs Prelude(
https://github.com/bbatsov/prelude). When started with --no-init-file the
behavior is not experienced.

A python doc string is surrounded by three double quotes. Like so:
"""
This is a doc string for a function.
"""

When I add the fifth ", emacs auto escapes the last two double  quotes. It
is like this:
"""
This is a doc string for the method
"\"\"

How do I prevent this from happening in python-mode ?

Turning off electric-auto-pair, changes the behavior to escaping the third
double quote instead of the 5th and 6th.

Anybody have any ideas to help me?

Thanks ahead of time!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-12 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1832.1378919078.10748.help-gnu-emacs@gnu.org>
2013-09-12  3:46 ` Python doc string with three double quotes Stefan Monnier
2013-09-12  8:43 ` Damien Wyart
2013-09-12 18:43   ` Scott Reynolds
2013-09-11 16:48 Scott Reynolds
2013-09-11 18:43 ` Andreas Röhler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.