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 pxeger
Recipients pxeger
Date 2021-08-05.19:55:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628193355.65.0.685014983693.issue44845@roundup.psfhosted.org>
In-reply-to
Content
Per bpo-41263, code.__new__ now uses Argument Clinic. However, it still has a / marker which prevents the use of keyword arguments (https://github.com/python/cpython/pull/21426/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234dR465).

It seems entirely unnecessary to have this, so could it be removed to allow easier construction of code objects from user code, or is it there for some specific reason?

I can do a PR - it's a 1 line change (+ clinic output changes) (+ tests?).

I don't imagine backwards-compatibility is a concern here given it's implementation-specific and basically private.

Note that prior to that fix, keyword arguments were allowed in the constructor but completely ignored.
History
Date User Action Args
2021-08-05 19:55:55pxegersetrecipients: + pxeger
2021-08-05 19:55:55pxegersetmessageid: <1628193355.65.0.685014983693.issue44845@roundup.psfhosted.org>
2021-08-05 19:55:55pxegerlinkissue44845 messages
2021-08-05 19:55:55pxegercreate