It seems when I have the import within my function I get some strange behavior. For lack of cooperative blog formatting, here’s a link to the code and the results. I tested this with python 2.5.2 and 2.6.2.
Now that I’ve pinpointed the issue I can easily work around it. But .. I’m still curious if anyone can tell me what is going on? Is this a feature? Or is there a bug at work here?