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

preview_player
Показать описание

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.

* * *

FREE Python Coding Tutorials & News:
Рекомендации по теме
Комментарии
Автор

Where Can I learn Python (not only the basics, a course with an advanced level) ?

nightshadow
Автор

I had even crazier combination: python2.6 and python3 :-)

danielciprus
Автор

No no no no no no no....no more Python 2. Seriously no. Whatever you think how legit your "exception" is, it is NOT. DO NOT USE Python 2 anymore!!

Canaris
welcome to shbcf.ru