[Tutor] Some "type" confusion...
Gizmo
gizmo1 at gmail.com
Tue Jan 23 12:16:09 CET 2007
Hello
I am learning Python via the excellent Dive Into Python book. I have little
question
1)
>>> import os
>>> type(os.environ)
<type 'instance'>
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 = {}
Hopefully, I wont be allowed to do that...but I am too scared to try.
Sincere Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070123/21c84d52/attachment.html
More information about the Tutor
mailing list