On Thu, Nov 4, 2010 at 9:16 PM, Victor Stinner
<victor.stin...@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   |   ncogh...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to