>>> Hi Thomas, >> >> Hi Jelle, >> >>> The gp module is interesting, since there is a OCC.gp.gp module. >>> Right now we can call: from OCC.gp import gp; gp.DX() >> >> You have to instanciate the gp class before calling the DX method: >> gp().DX() > >True, but the point is that in the renaming the instancing would have >to be done at the SWIG level.
Of course. >Since otherwise you will call an unbound object at gp.DX() ( in the >proposed renaming ). >As far as I know this is the only ( important ) module that does >this... ugly, but its like that... Well, I think that there are a few other OCC packages like that. >>> This will become from OCC import gp; gp.DX() ? >> >> It would be better, no? The 'gp' class has the same name as the 'gp' >> module and it's very confusing. This renaming requires a few more >> work since the instanciation of the gp() class has to be hidden to >> the user. > >Yep, I think so too... completely hidden >From the SWIG level as you previously said. Not difficult at all. Thomas _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users