B. Comparing Python 2 and Python 3

In This Appendix

What’s New in Python 3

Python 3 was released at the end of 2008 and marked a major update to Python. Some of the changes introduced in Python 3 are not backward-compatible with Python 2, and so development of Python 2 has continued in parallel with the newer Python 3.

In this chapter, we’ll summarize some of the main changes to Python 3 and also explain how you can convert a Python 2 program to Python 3.

What’s New in Python 3

Python 3 introduced many new features; the following are some of the most visible:

Image Python 3’s print function is indeed a function. In Python 2, print was a language ...

Get Python: Visual QuickStart Guide, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.