Nicolas Dumazet ha scritto:
-import re
+import re, sys
+
+if sys.version >= '3':
+ print 'Python 3.x is _not_ supported. Use Python 2.x'
+
Anyway, this is a bit less ugly:
u'Python 3.x is _not_ supported. Use Python 2.x'
No 'if' and 'sys' module.
--
Francesco Cosoleto
"Dunque nessuno indietro
si volti, verso le navi, dopo che ha udito l'appello,
ma andate avanti, l'un l'altro incitatevi,
se mai l'Olimpio Zeus, che il fulmine avventa, ci voglia concedere
di rintuzzare l'assalto, di ricacciare i nemici in città ". (Omero)