This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stuaxo
Recipients stuaxo
Date 2009-01-29.14:41:56
SpamBayes Score 3.7375e-06
Marked as misclassified No
Message-id <>
os.environ doesn't escape spaces, but does backslashes and others

In the windows python interpreter I echo'd the variable 'ProgramFiles',
then in the commandprompt.

>>> from os import environ
>>> environ['ProgramFiles']
'C:\\Program Files'
>>> ^Z

[C:\]echo %ProgramFiles%
C:\Program Files

This 'half' escapping seems odd, and is annoying when building file
paths for instance, probably the space should also be escaped.
Date User Action Args
2009-01-29 14:42:00stuaxosetrecipients: + stuaxo
2009-01-29 14:41:59stuaxosetmessageid: <>
2009-01-29 14:41:56stuaxolinkissue5098 messages
2009-01-29 14:41:56stuaxocreate