[Python-Dev] PEP 376 proposed changes for basic plugins support

Antoine Pitrou solipsis at pitrou.net
Tue Aug 3 16:28:45 CEST 2010


> There is a tension between the two approaches: either you want
> "auto-discovery", or you want a system with explicit registration and
> only the registered plugins would be visible to the system.

I think both are necessary. A discovery API should be available, but the
library or application should be free to do whatever it wants with the
discovered plugins - enable them automatically, present them to the
user, or nothing.

(a GUI application, for example, needs to be able to display a list of
available plugins, with checkboxes to enable or disable each of them. It
is not reasonable to expect the user to type the plugin name in a
textbox)

Regards

Antoine.




More information about the Python-Dev mailing list