os.environ => invalid token
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed Aug 11 22:03:36 EDT 1999
Peter Torstenson wrote:
>
> print os.environ['HOME']
>
> gives : invalid token.
It should work; looks like a parsing problem. Have
you accidentally typed a control character somewhere
in that line? Is your indentation consistent?
--
Greg Ewing, Computer Science Dept, | The address below is not spam-
University of Canterbury, | protected, so as not to waste
Christchurch, New Zealand | the time of Guido van Rossum.
greg at cosc.canterbury.ac.nz
More information about the Python-list
mailing list