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 gelbpunkt
Recipients gelbpunkt
Date 2020-03-13.19:24:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584127483.7.0.559336521807.issue39957@roundup.psfhosted.org>
In-reply-to
Content
Hi guys,

compiling CPython from the master branch will result in a git history with the commit https://github.com/python/cpython/commit/211055176157545ce98e6c02b09d624719e6dd30 included and in Lib/inspect.py, however the return type is still like before and behaviour has not changed.

    Python 3.9.0a4+ (heads/master:be79373a78, Mar 11 2020, 16:36:27) 
    [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import inspect
    >>> inspect.signature(lambda x, y: None).parameters == inspect.signature(lambda y, x: None).parameters
    True
    >>> 

I have been able to confirm this on all builds I've done. To get it to do expected behaviour and return False on above code, I need to patch back the commit that changed OrderedDict to dict (https://raw.githubusercontent.com/Gelbpunkt/python-image/master/inspect.patch is the file I am using to patch). I have compiled against the codebase of https://github.com/python/cpython/commit/be79373a78c0d75fc715ab64253c9b757987a848 and believe this is some issue with the Lib/inspect.py code internally if the patch file can fix it.
History
Date User Action Args
2020-03-13 19:24:43gelbpunktsetrecipients: + gelbpunkt
2020-03-13 19:24:43gelbpunktsetmessageid: <1584127483.7.0.559336521807.issue39957@roundup.psfhosted.org>
2020-03-13 19:24:43gelbpunktlinkissue39957 messages
2020-03-13 19:24:43gelbpunktcreate