How to write code that works on both Python 2 and Python 3?

Publicado em: 09 Outubro 2017
no canal de: Real Python
2,658
48

https://dbader.org/python-tricks ► New features available in Python 3 that let you write better code

Python question from a reader:

"How to write code that works on both Python 2 and Python 3?"

We'll discuss backwards compatibility in the Python world and the "six" module you can use to write code that works on Python 2 and Python 3 unmodified. Hopefully this will make the age-old "Python 2 vs Python 3" decision a little easier for you.

Got a question? Leave a comment with your Python or general software dev question on this video and I'll try to cover it question in one of the next "#PythonQ&A" videos.

Full playlist here:    • Python Q&A with Dan – Your Python/Car...  

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* * *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com

FREE Python Coding Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


Nesta página do site você pode assistir ao vídeo on-line How to write code that works on both Python 2 and Python 3? duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Real Python 09 Outubro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,658 vezes e gostou 48 espectadores. Boa visualização!