Transcript
Page 1: What's the Scoop with Python 3?

1

What's the scoop with Python 3?

Paul Barry – Institute of Technology, Carlow in Ireland

PyCon Ireland 2011

Page 2: What's the Scoop with Python 3?

Grab the slides:

http://paulbarry.itcarlow.ie/Python3.pdf

Page 3: What's the Scoop with Python 3?

3

Start working withPython 3 now!

Page 4: What's the Scoop with Python 3?

4

It seems nobody was listening...

Page 5: What's the Scoop with Python 3?

5

So... what's the scoop?

Page 6: What's the Scoop with Python 3?

6

Despite going from strength-to-strength,Python 3 has yet to replace Python 2

Page 7: What's the Scoop with Python 3?

7

WTF?

Page 8: What's the Scoop with Python 3?

8

Despite being nearly 3 years old,Python 3 has yet to replace Python 2

Page 9: What's the Scoop with Python 3?

9

That's OK

Page 10: What's the Scoop with Python 3?

10

In the short-to-medium term,Python 3 wasn't meant to replace Python 2

Page 11: What's the Scoop with Python 3?

11

Not yet, anyway...

Page 12: What's the Scoop with Python 3?

12

I wonder are thecoffee refillsfree today?

Page 13: What's the Scoop with Python 3?

13

Which version ofPython

should I usetoday?

Page 14: What's the Scoop with Python 3?

14

Not an either-or decision

Page 15: What's the Scoop with Python 3?

15

What do the good folk at python.org have to say?

Page 16: What's the Scoop with Python 3?

16

“... if you're deploying to an environment you don't control, that may impose a specific version rather

than allowing you a free selection from the available versions.”

Point #1 - Use 2 instead of 3

Page 17: What's the Scoop with Python 3?

17

I recently worked on a project that unashamedly specified Python 2.6.4 as the target platform

(even though the work was XML-based)

Page 18: What's the Scoop with Python 3?

18

“... if you want to use a specific third party package or utility that doesn't yet have a released

version that is compatible with Python 3, and porting that package is a non-trivial task...”

Point #2 - Use 2 instead of 3

Page 19: What's the Scoop with Python 3?

19

Another project (wisely) selected Django asthe target web-dev platform... which meant more

work for me in Python 2.x

Page 20: What's the Scoop with Python 3?

20

“... if you wish to use an alternative implementation of Python such as IronPython,

Jython or PyPy...”

Point #3 - Use 2 instead of 3

Page 21: What's the Scoop with Python 3?

21

A third project specified the .NET platform,but didn't care which language I used...

Page 22: What's the Scoop with Python 3?

22

A third project specified the .NET platform,but didn't care which language I used...

I used IronPython and was restrictedto working with the 2.7 release of Python

Page 23: What's the Scoop with Python 3?

23

It's hard to get away fromPython 2...

Page 24: What's the Scoop with Python 3?

24

It's hard to get away fromPython 2...

… especially when Python 2.7 isn't half-bad

Page 25: What's the Scoop with Python 3?

25

So, like, dude... what's the problem?

Page 26: What's the Scoop with Python 3?

26

Eventually, 2.x won't cut it anymore...

Page 27: What's the Scoop with Python 3?

27

Python 2.x is

DEAD

Page 28: What's the Scoop with Python 3?

28

It will soon start to smell

Page 29: What's the Scoop with Python 3?

29

This talk's

BIGMESSAGE

Page 30: What's the Scoop with Python 3?

30

Your current 2.x codebase is now

LEGACY

Page 31: What's the Scoop with Python 3?

31

Page 32: What's the Scoop with Python 3?

32

Page 33: What's the Scoop with Python 3?

33

Page 34: What's the Scoop with Python 3?

34

How can you saysuch a thing?

Page 35: What's the Scoop with Python 3?

35

At some point, you'll have to port allof your “current” 2.x code to Python 3

Page 36: What's the Scoop with Python 3?

36

Python 3 will soon become

THE DEFAULT

Page 37: What's the Scoop with Python 3?

37

This Is Your Future:

Page 38: What's the Scoop with Python 3?

38

Imagine if this was to happen with someother distribution or OS...?!?

Page 39: What's the Scoop with Python 3?

39

Prevailing attitudes towards Python 3

Page 40: What's the Scoop with Python 3?

40

I'll just ignoreit and it'llgo away.

Page 41: What's the Scoop with Python 3?

41

Ignore the future at your

PERIL

Page 42: What's the Scoop with Python 3?

42

Whatever were they thinking?Sure, the print statement

doesn't even work!!!

Page 43: What's the Scoop with Python 3?

43

The print statement in 2.x is

BROKEN

Page 44: What's the Scoop with Python 3?

44

There's no goodPython 3 specific books out there.

Page 45: What's the Scoop with Python 3?

45

Page 46: What's the Scoop with Python 3?

46

Page 47: What's the Scoop with Python 3?

47

This is all rubbish! We'll just keepwriting 2.x code

FOREVER...

Page 48: What's the Scoop with Python 3?

48

You are in

DENIAL

Page 49: What's the Scoop with Python 3?

49

Be honest... there'snot one single feature

that demands theupgrade, right?

Page 50: What's the Scoop with Python 3?

50

UNICODE

Page 51: What's the Scoop with Python 3?

51

Page 52: What's the Scoop with Python 3?

52

Look – we can'tdo anything until thoseguys over there update

their code...

Page 53: What's the Scoop with Python 3?

53

Look – we can'tdo anything until thoseguys over there update

their code... I agree - let'sdo nothing.

Page 54: What's the Scoop with Python 3?

54

If you do

NOTHINGyou are in

DENIAL

Page 55: What's the Scoop with Python 3?

55

Page 56: What's the Scoop with Python 3?

56

Page 57: What's the Scoop with Python 3?

57

Page 58: What's the Scoop with Python 3?

58

Page 59: What's the Scoop with Python 3?

59

I'm back where I started

Page 60: What's the Scoop with Python 3?

60

Start working withPython 3 now!

Page 61: What's the Scoop with Python 3?

61

Start your Python 3porting effort now!

Page 62: What's the Scoop with Python 3?

62

Your love lifedepends on it!!!

Page 63: What's the Scoop with Python 3?

63

I really do love you...

Page 64: What's the Scoop with Python 3?

64

That's nice. But, I'dlove you more if onlyyou'd port your code

to Python 3.

Page 65: What's the Scoop with Python 3?

65

Final question to those of youthat think you can “survive”

with Python 2.x

Page 66: What's the Scoop with Python 3?

66

How many of you are still supportingPython 1.x code?

Page 67: What's the Scoop with Python 3?

67

Questions?