On Thu, 2009-04-30 at 15:27 +0200, Jelle Feringa wrote: > On Apr 30, 2009, at 2:23 PM, thomas.pav...@free.fr wrote: > > >> 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. > 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...
OK, I finally understand what Jelle is saying. The gp class is the only one which does *not* have a prefix i.e. There is no OCC.gp.gp_gp() class; it's OCC.gp.gp() instead. There needs to be a catch for cases where there is no prefix (i.e. no '_' in the name) and an alternative policy. There are a few other instances like this e.g. PLib.PLib. I suggest that un-prefixed classes are passed through unchanged after checking for conflicts. Bryan > > > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users