[Tutor] os.environ question
Kent Johnson
kent37 at tds.net
Thu Nov 12 12:55:22 CET 2009
On Wed, Nov 11, 2009 at 10:34 PM, Khalid Al-Ghamdi <emailkgnow at gmail.com> wrote:
> hi,
> can anyone tell me why on python 2.6 i can enter os.environ and then get all
> the items that that pertain to the os while on python 3 you just get the
> following:
> <os._Environ object at 0x01B18D90>
> with no items?
I think this is perhaps an oversight in Python 3.1. I have filed a bug
with an explanation (if you do want to know why) at
http://bugs.python.org/issue7310
Kent
More information about the Tutor
mailing list