Keeping up with new Python features

April 5, 2006

I have a new resolution: every so often, I'm going to read over the current builtins section of the Python documentation.

I've come to this because recently I was reading through a page on Python idioms to see if it had anything new, and stumbled over the mention of an enumerate() builtin, new in Python 2.3. Well, I'm using Python 2.3, and I hadn't remembered enumerate(), and I could have used it recently. Whoops.

I do try to keep up with release notes and other sources of Python news and discussion (eg, Planet Python). But it's easy to forget about smaller things (or only remember them vaguely) in the time between I read about a new bit and when I can use it. Clearly I need to give myself a refresher every so often.

(If I was really ambitious I would periodically scan the entire Python Library Reference, at least reading the one sentence description of all the modules. I don't think I'm that energetic, though.)

Comments on this page:

By DanielMartin at 2006-04-06 08:31:44:

See, this is why perl comes with the perldelta manpage.

By cks at 2006-04-07 16:40:28:

Python has "What's New in Python 2.X" documents, and if I'd read the 2.3 version I'd have promptly hit enumerate(). Part of the problem is that I often read the what's new documents when the version comes out, which is often well before I actually start using it.

Reading (or rereading) all of the what's new stuff back to Python 2.0 or so would probably be a good idea too, but that's more work. (Maybe what I want is something that gives me a compact list of changes between any two versions of Python.)

Written on 05 April 2006.
« The other dynamic linking tax
Some things about smpatch »

Page tools: View Source, View Normal, Add Comment.
Login: Password:
Atom Syndication: Recent Comments.

Last modified: Wed Apr 5 17:45:28 2006
This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.