Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
Closed
Description
Bug report
Bug description:
Seemsos.posix_spawn uses new-style argument parsing withkwtuple in a vectorcall function, which can trigger aSystemError instead of aTypeError for invalid keyword-only argument.
Tested on Ubuntu 22.04:
>>>importos>>>os.posix_spawn("/bin/echo", ["echo","hi"],os.environ,scheduler=None)Traceback (mostrecentcalllast):File"<python-input-1>",line1,in<module>os.posix_spawn("/bin/echo", ["echo","hi"],os.environ,scheduler=None)~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^SystemError:newstylegetargsformatbutargumentisnotatuple
CPython versions tested on:
CPython main branch, 3.9
Operating systems tested on:
Linux