Alcune funzioni e moduli di python 3 sono stati sottoposti a backport in python 2.7 quali sono le notevoli differenze tra python 3.1 e python 2.7?python 2.7 vs python 3.1
12
A
risposta
9
Credo che queste risorse potrebbero aiutarvi:
- Un introduction to Python "3000" da Guido van Rossum
- Porting your code to Python 3
- e, naturalmente, la documentazione di changes in Python 3.0
E come hai detto
Alcune Python 3 funzioni e moduli essendo stati backport a Python 2,7
... vorrei invertire quella frase e dire only few packages eppure sono stati portati da Python 2.x alla 3.x. Grandi librerie come PyGTK funzionano ancora solo in Python 2. La migrazione può richiedere un po 'di tempo in molti progetti, quindi prima di decidere di usare Python 3 potresti pensare a scrivere i tuoi progetti in Python 2, assicurandoti la compatibilità testando con 2to3 regolarmente.
0
Se si desidera utilizzare una qualsiasi della funzione python 3 in python 2.7, è possibile importare il modulo futuro e quindi è possibile utilizzarlo nel codice.
Problemi correlati
- 1. python 2.7 in minuscolo
- 2. mod_python per python 2.7
- 3. Bluetooth per Python 2.7?
- 4. Contatore lista python 2.7
- 5. Python 2.7 su Ubuntu
- 6. Errore Python 2.7 print()
- 7. Ttk on python 2.7
- 8. MSSQL in python 2.7
- 9. Decompile Python 2.7 .pyc
- 10. Python 2.7 o Python 3 (per velocità)?
- 11. $ PYTHONSTARTUP con python 2.7 e python 3.2
- 12. memoria occupata da set vs frozenset in Python 2.7
- 13. Python 2.7: Stampa thread safe
- 14. MySQLdb per Python 2.7 (Ubuntu)
- 15. python 2.7 string.join() con unicode
- 16. Python 2.7 concurrent.futures.ThreadPoolExecutor non parallelizzare
- 17. Python 2.7: Ints come oggetti
- 18. equivalente urllib.parse.quote() in python 2.7
- 19. Python 2.7: Stampa su file
- 20. Python vs Iron Python
- 21. I descrittori Python non funzionano in Python 2.7
- 22. Come aggiornare python 2.6 a python 2.7 in ubuntu
- 23. Homebrew Python e scrivere in /Library/Python/2.7/site-packages/?
- 24. installare Python-2.7 su Ubuntu 10.4
- 25. tempfile.TestoraryDirectory gestore del contesto in Python 2.7
- 26. Python 2.7 Beautiful Soup img src Estratto
- 27. Cosa fa yield in python 2.7?
- 28. Python stelle disimballaggio per la versione 2.7
- 29. python 2.7 equivalente del metodo incorporato int.from_bytes
- 30. Python 2.7 non può importare PyQt4
http://docs.python.org/py3k/whatsnew/index.html –
Prova a utilizzare anche la ricerca. Ad esempio http://stackoverflow.com/questions/4570006/take-up-python-3-x-or-2-x, http://stackoverflow.com/questions/170921/to-learn-python-2- poi-3-o-3-from-the-start –