[issue5098] Environ doesn't escape spaces properly

2009-01-29 Thread Martin v. Löwis
Martin v. Löwis added the comment: As Jean-Paul explains, you are misinterpreting what you are seeing. Closing as invalid. -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker

[issue5098] Environ doesn't escape spaces properly

2009-01-29 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The backslash escaping has nothing to do with os.environ. It's the way any string with a backslash in it is displayed in the interactive interpreter (it's the way str.__repr__ works). Performing any escaping on a string to make it usable in a command line

[issue5098] Environ doesn't escape spaces properly

2009-01-29 Thread Stuart Axon
New submission from Stuart Axon : 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 %Pr