Re: [Tutor] Some "type" confusion...

2007-01-23 Thread Kent Johnson
Gizmo wrote: > Hello > I am learning Python via the excellent Dive Into Python book. I have > little question > > 1) > >>> import os > >>> type(os.environ) > > > Why is this considered "instance" ? Should'nt it be "dict" type? > I have a feeling I am missing something deeper here. 'instance'

[Tutor] Some "type" confusion...

2007-01-23 Thread Gizmo
Hello I am learning Python via the excellent Dive Into Python book. I have little question 1) import os type(os.environ) Why is this considered "instance" ? Should'nt it be "dict" type? I have a feeling I am missing something deeper here. 2) What would happen if I did this os.environ = {}