[BangPypers] Favorite tips/techniques

Saju M sajuptpm at gmail.com
Fri Sep 13 09:19:09 CEST 2013


Import sub-modules with alias.
Is it a bug ?

>>>
>>> import json
>>> from json import tool
>>>

--------

>>>
>>> import json as sjson
>>> from sjson import tool
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sjson
>>>


More information about the BangPypers mailing list