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 serhiy.storchaka
Recipients methane, myint, serhiy.storchaka, vstinner
Date 2017-05-29.17:41:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496079679.18.0.299040699054.issue30497@psf.upfronthosting.co.za>
In-reply-to
Content
Even if the line number of a docstring is known, it is not easy to determine the line number corresponding to the particular line in a docstring if it contains backslashes following by newline.

'''foo
bar
'''

and

'''\
foo
bar
'''

are equal strings, but the lines 'bar' have different offsets from the start of the strings.

The only robust method was parsing the source code starting from the start of a docstring. Now you just need to start parsing from the start of the function/class.
History
Date User Action Args
2017-05-29 17:41:19serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, methane, myint
2017-05-29 17:41:19serhiy.storchakasetmessageid: <1496079679.18.0.299040699054.issue30497@psf.upfronthosting.co.za>
2017-05-29 17:41:19serhiy.storchakalinkissue30497 messages
2017-05-29 17:41:18serhiy.storchakacreate