python
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| python [2019/09/10 14:52] – [Edition Rule] francois | python [2019/09/10 14:52] (Version actuelle) – francois | ||
|---|---|---|---|
| Ligne 132: | Ligne 132: | ||
| == RUL_WRI_003 : Activate future features (Python2 only) == | == RUL_WRI_003 : Activate future features (Python2 only) == | ||
| - | Make your Python2 code compliant with Python3 by inserting at least : (from [[https:// | + | Make your Python2 code compliant with Python3 by inserting at least : (from [[https:// |
| from __future__ import absolute_import | from __future__ import absolute_import | ||
| Ligne 138: | Ligne 138: | ||
| from __future__ import print_function | from __future__ import print_function | ||
| from __future__ import unicode_literals | from __future__ import unicode_literals | ||
| + | | ||
| from builtins import * | from builtins import * | ||
| + | | ||
| from future import standard_library | from future import standard_library | ||
| standard_library.install_aliases() | standard_library.install_aliases() | ||
python.1568127145.txt.gz · Dernière modification : 2019/09/10 14:52 de francois