[vtk-developers] Question regarding Python imports.
Andrew Maclean
andrew.amaclean at gmail.com
Wed Dec 20 01:45:51 EST 2017
What do people using Python mostly do/prefer?
1) import vtk
2) from vtk.xx import yy
3) from vtk import yy
In 2) we are actually specifying the module where yy resides.
In PyCharm:
For the case of 1) when we declare something like z = vtk.yy we get a
cannot find reference in __init__.py() warning
For case of 2) or 3) we get an unresolved reference for yy in the from
statement.
I'm trying to speed up vtk in Windows!
Regards
Andrew
--
___________________________________________
Andrew J. P. Maclean
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://vtk.org/pipermail/vtk-developers/attachments/20171220/7c3bee81/attachment.html>
More information about the vtk-developers
mailing list