[Pywikipedia-l] Stress Python 3 incompatibility
Francesco Cosoleto
cosoleto at gmail.com
Sat May 9 11:36:55 UTC 2009
Nicolas Dumazet ha scritto:
> Index: login.py
[...]>
> -import re
> +import re, sys
> +
> +if sys.version >= '3':
> + print 'Python 3.x is _not_ supported. Use Python 2.x'
> +
[...]
> Index: wikipedia.py
[...]
> +
> +if sys.version >= '3':
> + print 'Python 3.x is _not_ supported. Use Python 2.x'
> +
This is a hack, it is very ugly, and it "works" only for chance. Just
update the home page and the CONTENTS file (which should be renamed to
README) or provide a branch for Python 3, looks for me as better solutions.
--
Francesco Cosoleto
"Noi esercitiamo il potere con l'amore, non con le armi" (J. P.
Goebbels, ministro della cultura del governo nazionalsocialista tedesco,
1936)
More information about the Pywikipedia-l
mailing list