This is regarding #1112549. I think this can go in. It should also be backported to 2.4 and to 2.3 (if we ever release another one of that). I reviewed the code and added some minor comments to the SF tracker. -- --Guido van Rossum (home page: http://www.python.org/~guido/)