Keyword argument support for exec/eval?

I have searched for chatter about this in the past, and realize that churning about on this topic might be a bit of a time waster, but what would be required to make eval and exec be able to take keyword arguments? Explaining exec and eval, and not being able to use kwargs to establish an ordering (especially when the docs talk about defaults) is not great IMO. Has there been discussion in the past on when adding kwarg support for existing functions becomes a thing that patches are accepted for?

I would support allowing the globals and locals arguments to exec() to be passed as keyword arguments. Open an issue on https://github.com/python/cpython and if no other core devs object, we can fix this in 3.13. The actual code change would be very small thanks to Argument Clinic. El mié, 7 jun 2023 a las 5:55, Raphael Gaschignard (<r.gaschignard@gmail.com>) escribió:

I would support allowing the globals and locals arguments to exec() to be passed as keyword arguments. Open an issue on https://github.com/python/cpython and if no other core devs object, we can fix this in 3.13. The actual code change would be very small thanks to Argument Clinic. El mié, 7 jun 2023 a las 5:55, Raphael Gaschignard (<r.gaschignard@gmail.com>) escribió:
participants (2)
-
Jelle Zijlstra
-
Raphael Gaschignard