I'm not sure whether this is gonna work with Python 2.6. I might wrong, but I get some impression that this feature is newly introduced in Python 2.7.