[Tutor] Why is this not working? Seems like a whitespace issue

2007-02-04 Thread Gizmo
Hello I have a whole directory tree of RAR files that I wish to extract as a batch job. In my real script I've used os.walk() and os.spawn*() but for demonstration purposes have a look at the code below import os process=r"C:\Program Files\WinRAR\Rar.exe" startDir = r"C:\to burn" os.system(pr

[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 = {}