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 Anthony Sottile
Recipients Anthony Sottile, serhiy.storchaka, vstinner, yselivanov
Date 2020-06-24.01:12:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Looking into this, it appears to be due to the default value and not due to the newline

I've stumbled upon two simplifications to the routines in inspect but not a fix for this

1. https://github.com/python/cpython/pull/21100
2. https://github.com/python/cpython/pull/21104

the following code is hit because `ast.literal_eval(...)` fails for the `|`d expression:

https://github.com/python/cpython/blob/2f9ada96e0d420fed0d09a032b37197f08ef167a/Lib/inspect.py#L2069-L2070

this causes the parameter to be skipped entirely
History
Date User Action Args
2020-06-24 01:12:14Anthony Sottilesetrecipients: + Anthony Sottile, vstinner, serhiy.storchaka, yselivanov
2020-06-24 01:12:14Anthony Sottilesetmessageid: <[email protected]>
2020-06-24 01:12:14Anthony Sottilelinkissue41095 messages
2020-06-24 01:12:14Anthony Sottilecreate