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


2 comments:

eryksun said...

How are reversed slices a mess? 'abcde'[::-1] == 'abcde'[4::-1] == 'edcba'.

Vasudev Ram said...

You should ask the person who said it, i.e. Guido :-)