Skip to content Skip to sidebar Skip to footer

Python 3.5 Vs Python 2.7: Modules Importing Submodules

I have been googling this for the past hours and can't find an equivalent question anywhere. Also the documentation for 2.7 and 3.5 seem identical, so I don't think this behavior i

Solution 1:

Use an explicit relative import:

from . import subapi

Post a Comment for "Python 3.5 Vs Python 2.7: Modules Importing Submodules"