Reading the code, there are two ways to register plugins (files *.gpr.py):
- “verbose”
plg = newplugin()
plg.<property> = <value>
…
- “concise”
register(<property>=<value>, …)
Function register
internally calls newplugin
and does the conversion between both forms.
About half plugins use the “verbose” declaration and the other half the “concise” declaration. The “concise” one is labelled a convenience function in a comment.
Which one is recommended for preferential use?
What is the advantage of one over the other as they are strictly equivalent in their effect?