Showing posts with label Python2-vs-Python3. Show all posts
Showing posts with label Python2-vs-Python3. Show all posts

Sunday, November 10, 2013

Guido on Python 2 vs. Python 3


By Vasudev Ram

Guido van Rossum, our BDFL, just gave a presentation on Python 2 vs. Python 3.

Here it is:

Python 2 vs. Python 3 - A retrospective

I scanned most of it. Some excerpts that I personally found interesting:

- Too many ways to do it :-)
- e.g. old- and new-style classes

- People don't like change
-People positively hate incompatible changes
- So we did it anyway

- Drop "raise E, value" —> raise E(value)

- Drop backticks: `x` -> repr(x)

- No default ordering: 1 < 'x' raises TypeError
(I did think this was an issue when I came across it)

- Why reduce() must die

- Vasudev Ram - Python consulting and training



O'Reilly 50% Ebook Deal of the Day