Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Note, that getting the location of the dostring already was a pain since in 
case of multiline string literals CPython saves the location of the last line, 
and PyPy saves the location of the first line. Getting the location of the 
specific fragment of the docstring is even larger pain as shown in following 
examples:

    def f()
        """
        >>> f()
        """

    def f()
        """\
        >>> f()
        """

    def f()
        ""\
        ""\
        ">>> f()"\
        ""\
        ""

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32911>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to