C++ namespace imported as a "class" instead of "module"

Kazu,

yes, all C++ namespaces are represented as classes, as modules can not be dynamically extended. Classes can be imported from, but for this specific use, there are two chicken-and-egg problems. First, mytry isn’t known (being top-level) until it is accessed, and second the same is true for Trial (as it is also created lazily).

So, this is the most that works today:[code]import ROOT

if not auto-loadable, load dict for mytry here

ROOT.mytry # bring mytry alive
from ROOT.mytry import Trial # tickle lazy creation of Trial, ‘*’ won’t do that
my_instance = Trial() # use …[/code]
This is all on the TODO list to fix (e.g. the latter just needs to define all), but has been in flux as ROOT has been improving unloading and laziness in the back.

Cheers,
Wim