miércoles, 26 de enero de 2011

Las palabras de Yoda sobre cómo se debe importar desde módulos en Python

Extraído desde Code Like a Pythonista: Idiomatic Python.


(Exterior Dagobah, jungle, swamp, and mist.)
LUKE: Is from module import * better than explicit imports?
YODA: No, not better. Quicker, easier, more seductive.
LUKE: But how will I know why explicit imports are better than the wild-card form?
YODA: Know you will when your code you try to read six months from now.

No hay comentarios: