3 ms·
No, but it is possible to write Python 2 code than runs in Python 3. In fact, the vast majority of popular libs had a 2/3 compatible code base for a few years.
by BiteCode_dev 6y ago
No, but it is possible to write Python 2 code than runs in Python 3.
In fact, the vast majority of popular libs had a 2/3 compatible code base for a few years.
The hard part was not the syntax in fact. It's pretty trivial: the language are not that different.
The hard part is the I/O stack, because the stdlib is very different, espacially for this part.