> I agree with other posters that we definitely do not want this as the default > behavior in Python. However, it's also sometimes a useful pattern. I use it > when I have a large plugin architecture that can take dozens or hundreds of > possible parameters, but any given plugin is likely to only use a few > parameters. I've written calllib (https://pypi.org/project/calllib/) to > support this. It might achieve your goals.
We do the same for various libs (tri.table for example) and our solution is just to say that you need to include **_ in your arguments for such functions. Simpler and more obvious than a simple DI system imo. / Anders _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/