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 Marco Sulla
Recipients Marco Sulla, gregory.p.smith, josh.r, mbussonn, methane, pablogsal, remi.lapeyre, rhettinger, serhiy.storchaka, steven.daprano
Date 2019-11-07.10:22:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573122152.87.0.502699760098.issue36906@roundup.psfhosted.org>
In-reply-to
Content
Anyway there's something strange in string escaping and `inspect.cleandoc()`:

>>> a = """
... \nciao
...     bello
... \ ciao
... """
>>> print(inspect.cleandoc(a))
ciao
    bello
\ ciao
>>> print("\ ciao")
\ ciao

I expected:

>>> print(inspect.cleandoc(a))

ciao
bello
 ciao
>>> print("\ ciao")
 ciao
History
Date User Action Args
2019-11-07 10:22:32Marco Sullasetrecipients: + Marco Sulla, rhettinger, gregory.p.smith, steven.daprano, methane, serhiy.storchaka, josh.r, mbussonn, pablogsal, remi.lapeyre
2019-11-07 10:22:32Marco Sullasetmessageid: <1573122152.87.0.502699760098.issue36906@roundup.psfhosted.org>
2019-11-07 10:22:32Marco Sullalinkissue36906 messages
2019-11-07 10:22:32Marco Sullacreate