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.gaschign...@gmail.com>) escribió: > 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? > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/AD37KVC4CP4HQD4D7VUJTCWSP4LKEZYB/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/7EJ57WXPQRZSMNJUHT5SBFQZDSRDUU7P/ Code of Conduct: http://python.org/psf/codeofconduct/