Il existe un module "six" pour faciliter la compatibilité entre Python 2 et Python 3 : le nom "six" vient de (Python) 2 * (Python) 3. Si son auteur était superstitieux, il aurait du prendre 2^3 (8). http://pypi.python.org/pypi/six
D'ailleurs sa documentation débute par : The name, "six", comes from the fact that 2*3 equals 6. Why not addition? Multiplication is more powerful, and, anyway, "five" has already been snatched away.
[^] # Re: passage de 5 à 6 => palier maudit ?
Posté par Victor STINNER (site web personnel) . En réponse au journal PHP 5.4 Alpha 1 est annoncé. Évalué à 3.
Il existe un module "six" pour faciliter la compatibilité entre Python 2 et Python 3 : le nom "six" vient de (Python) 2 * (Python) 3. Si son auteur était superstitieux, il aurait du prendre 2^3 (8).
http://pypi.python.org/pypi/six
D'ailleurs sa documentation débute par :
The name, "six", comes from the fact that 2*3 equals 6. Why not addition? Multiplication is more powerful, and, anyway, "five" has already been snatched away.