On Apr 28, 2009, at 2:42 PM, Thomas Paviot wrote:

>>> __But__: imagine a pythonOCC user do:
>>> from OCC.BRepPrimAPI import *
>>> MakeBox(...)
>>> The code will quickly be unreadbable (from which module comes the
>>> MakeBox object)?
>>
>> I'm not enough of a python user to know if this is a real problem.  
>> It seems like
>> something that will lead to trouble, but can we just advise users  
>> not to do it?
Is there an easy way to throw a warning if a user does the wildcard  
import on modules that are know to have conflicting names?  If not,  
maybe throw the warning any time they do ~any wildcard import on occ  
modules?

Even if that's not easy, showing the correct way to do things in the  
code examples, and putting a warning somewhere in the docs should be  
enough.



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

Reply via email to