wiki@my.terrot.net

Wiki@my.terrot.net is a service provided by Terrot.Net a company of the Terrot Research & Services Group.

Outils pour utilisateurs

Outils du site


python

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
python [2019/09/10 16:48] – [Fundamental Rules] francoispython [2019/09/10 16:52] (Version actuelle) francois
Ligne 131: Ligne 131:
  
 == 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 __future__ import unicode_literals+Make your Python2 code compliant with Python3 by inserting at least : (from [[https://linuxfr.org/news/python-pour-la-rentree-2019-partie-2-48277b5e-c1a0-441e-836a-5c9536c4a8d6|Python pour la rentrée 2019 — partie 2]]) 
 + 
 +  from __future__ import absolute_import 
 +  from __future__ import division
   from __future__ import print_function   from __future__ import print_function
 +  from __future__ import unicode_literals
 +  
 +  from builtins import *
 +  
 +  from future import standard_library
 +  standard_library.install_aliases()
 +
      
 == RUL_WRI_004 Indentation == == RUL_WRI_004 Indentation ==
python.1568126932.txt.gz · Dernière modification : 2019/09/10 16:48 de francois

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki