Message399034
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. |
|
Date |
User |
Action |
Args |
2021-08-05 19:55:55 | pxeger | set | recipients:
+ pxeger |
2021-08-05 19:55:55 | pxeger | set | messageid: <1628193355.65.0.685014983693.issue44845@roundup.psfhosted.org> |
2021-08-05 19:55:55 | pxeger | link | issue44845 messages |
2021-08-05 19:55:55 | pxeger | create | |
|