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.737501e-06
Marked as misclassified No
Message-id <1233240119.96.0.34005552843.issue5098@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-29 14:42:00stuaxosetrecipients: + stuaxo
2009-01-29 14:41:59stuaxosetmessageid: <1233240119.96.0.34005552843.issue5098@psf.upfronthosting.co.za>
2009-01-29 14:41:56stuaxolinkissue5098 messages
2009-01-29 14:41:56stuaxocreate