Friday, December 5, 2008

OSDC liveblogging: The State of Python

Presentation by Anthony Baxter

* 2.5.2 changes came from App Engine
* The Big News
- 3.0 is done
- .X releases are backward-compatible
- 2.6.1 almost out
- tinyurl.com/python3

IronPython continues on merry way
* Really fast
* Visual Studio is great
* First major bit of software with a decent license (pretty much Berkely)
* Targets 2.5
* Mostly works on Mono

Upgrade code:

* Take old code
* Port to 2.6
* Use -3 flag to show warnings
* Fix those
* Then run 2to3 -- rewrites code to 3 compat
* django is out for 3

Demo of upgrade to small app and highlight some specific changes
* print is a function
* print("foo", end="")
* __repr__ --> repr builtin, backticks gone

What's the future?
------------------
2.6.1 soon, 2.5 final not far off
3.0.1 a few months away

d.items() returns a dictionary view

If you want to learn python, learn in Python 3. New book coming out soon from someone who has been tracking python 3 for some time.