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...


>> 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


_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to