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 ncoghlan
Recipients BreamoreBoy, ThurnerRupert, eric.smith, laurent.birtz, ncoghlan, r.david.murray, terry.reedy, tim.golden
Date 2013-11-13.22:30:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CADiSq7ezwe6GV1pjZMaeJ8o90=eOwocpra4-7a9PkF0LSy6+tg@mail.gmail.com>
In-reply-to <1384367846.36.0.760932801319.issue6208@psf.upfronthosting.co.za>
Content
We can't change os.sep globally for the process because the Windows APIs
don't reliably accept forward slashes. Changing it when the Windows binary
is run through msys would thus mean potentially breaking currently working
applications.

Using the Cygwin Python instead is safer, since all the affected OS API
calls will be trapped by Cygwin's POSIX API implementation and translated
appropriately for Windows.

Terry's description when first closing this issue remains accurate: MS
created this mess through an atrociously poor choice of path separator
decades ago, and until *all* their APIs natively accept forward slashes as
path separators (which seems unlikely to ever happen), the only backwards
compatible answer currently appears to be to use a full POSIX interface
layer like Cygwin.
History
Date User Action Args
2013-11-13 22:30:37ncoghlansetrecipients: + ncoghlan, terry.reedy, eric.smith, tim.golden, ThurnerRupert, r.david.murray, BreamoreBoy, laurent.birtz
2013-11-13 22:30:37ncoghlanlinkissue6208 messages
2013-11-13 22:30:37ncoghlancreate