zapan666 a écrit :
Tu as fais ton propre module de thread, tu veux l'utiliser en remplacement du module threading, sans pour autant changer tes sources : Code :
- import mythreadmodule as threading
|
|
Ca, et aussi le fait que ça permette de de changer un nom long en nom court e.g.
Code :
import foobarbaz.gnupafploc.turbomagicgeezermuncher as muncher
|
Parce que si on fait juste
Code :
import foobarbaz.gnupafploc.turbomagicgeezermuncher
|
ben pour appeler la classe "Oleg" dans le module, il faut faire
Code :
foobarbaz.gnupafploc.turbomagicgeezermuncher.Oleg
|
alors qu'avec l'import...as on fait simplement
ce qui est un micropoil moins chiant à taper et à lire.
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?