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,
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to