Monthly Archives: May 2018
Migrating from Python 2 to Python 3

Modern Python offers powerful features such as asynchronous programming (using async and await) and memory-efficient data processing with generators and iterators. Leveraging these advancements, primarily found in Python 3, can significantly improve your code’s performance and maintainability. This often necessitates migrating existing Python 2 projects. The migration process can vary from a straightforward conversion to a substantial refactoring. To help you navigate this, we’ll discuss some of the crucial differences between the two Python versions.

1. PRINT:

This one is easy – most of the time it’s just about translating code from:

print "abcd";

to:

print("abcd")

Continue Reading →