[Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Thu Nov 4 15:59:22 CET 2010


On Thu, Nov 4, 2010 at 9:16 PM, Victor Stinner <victor.stinner at haypocalc.com> wrote:

So do you still think that I should patch the os module to use a global import or not?

I'm actually more inclined to suggest we avoid triggering the warning under -bb in the first place by iterating over the environment in that case instead of using the mapping interface. (I was going to suggest a smarter version that used a SafeKey class instead, but it turns out os.environ only works with real string objects).

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list