Ryan, > So if you don't care about portability or about that dirty feeling you get from messing with the Python internals, then have at it :-) Warnings aside, its very clever code. Thanks for sharing! Malcolm