This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dima.Tisnek
Recipients Caio.Romao, Dima.Tisnek, eric.araujo
Date 2011-09-20.07:51:04
SpamBayes Score 0.0024859726
Marked as misclassified No
Message-id <1316505065.65.0.0761861738195.issue12930@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks Caio, your test case covers my issue; seeing these spelt out got me thinking, there are perhaps 3~4 different cases:

def f0():
  s = """select
some sql
from
somewhere;
-- cannot be reindented"""

def f1():
  """ Multiline 
  text docstring
  should be reindented """

def f2():
  """ should example be reindented inside docstring?
  if f2():
    print "great"
  """

def f3():
  """ # should doctest be reindented inside docstring?
  >>> if f3():
  ...   print "yes"
  ... else:
  ...   print "no"
  ...
  no
  """
History
Date User Action Args
2011-09-20 07:51:05Dima.Tisneksetrecipients: + Dima.Tisnek, eric.araujo, Caio.Romao
2011-09-20 07:51:05Dima.Tisneksetmessageid: <1316505065.65.0.0761861738195.issue12930@psf.upfronthosting.co.za>
2011-09-20 07:51:05Dima.Tisneklinkissue12930 messages
2011-09-20 07:51:04Dima.Tisnekcreate