Hi,
agree with Jean-François.
That said, in cppyy I had a feature that I wanted to backport for a while and I just did (is in v5-34-00-00-patches and trunk). The problem with it is bootstrapping (I should write a custom finder for import, but haven’t had the time yet to figure out how that would work for older pythons).
Basically, this feature allows:ROOT.namespace1.namespace2
from ROOT.namespace1.namespace2 import *
The first line is needed to get all the auto-loading and lazy creation done and over with, as well as to register the namespace as a module. The second line is the using-style. Note that this does not provide the kind of lazy lookup that “from ROOT import *” gives you: it’s a full ref-copy of everything available in the namespace2 at that point in time only.
Cheers,
Wim