Pycon Day 2

State of the Python Universe – Guido van Rossum

Python source repository has been moved from Sourceforge CVS to svn on Buildbot checks out and builds code after each checkin, keeps code quality high by finding broken code fast. New site goes live next Sunday. 2.5 release around 09/30/06.

What’s new in 2.5:

  • absolute/relative import – applies to modules that are in a package, resolves ambiguities.
  • Conditional expressions – like C ?: operator. Guido’s choice: expr1 if cond else expr2.
  • try/except/finally unification
  • yield inside try in a generator is allowed
  • with statement – Context management, easy syntax for try/finally mutex code
  • Exception enhancements
    • All exceptions will be new-style classes
    • BaseException class which will be the base class of all exceptions
    • Maybe eventually get rid of except: syntax
  • __index__ to convert classes that represent exact ints to a python int. Allows these classes to be used as slice indices.
  • AST-based compiler – new bytecode compiler integrated into HEAD
  • ssize_t – Strings greater than 2Gb work on 64-bit platforms.
  • python -m
    . – runs package.module as __main__
  • Lots of new stuff in 2.5 standard library
  • defaultdict – {key:[]}, map one key to many values

wxPython BOF session

About 50 people showed up. Cool!

Internationalization in Chandler

i18n goes beyond string translation. Python doesn’t have internationalization built in. Used SWIG to wrap icu. All text data in unicode. All buttons, exceptions, etc. go through translation manager.


This talk was packed. It was in one of the smaller rooms, and about half the conference showed up for it. Because of the general craziness in the room, I wasn’t really able to follow this talk.
Lightning talk notes

  • Tsearch2 – Postgress full text search
  • Routes – URL mapping


  • Cool, but it’ll definitely make the security guys cringe.

Leave a Reply

Your email address will not be published. Required fields are marked *