samedi 27 juin 2015

Intra-package Reference

module_a is the main module of the package whereas module_b is just another module in package

package
|-------- __init__.py
|-------- module_a.py 
+-------- module_b.py 

How does from .module_b import Test differ from a direct import like from module_b import Test

Aucun commentaire:

Enregistrer un commentaire