PEP idea: On Windows, subprocess should implicitly support .bat and .cmd scripts by using FindExecutable from win32 API

Chris Angelico rosuav at gmail.com
Thu May 7 07:43:34 EDT 2015


On Thu, May 7, 2015 at 9:28 PM, Dave Angel <davea at davea.name> wrote:
> It's a nice goal.  But these aren't OS features in Windows, they're shell
> features.  And there are several shells.  If the user has installed a
> different shell, is it Python's job to ignore it and simulate what cmd.exe
> does?

It might be an unattainable goal (in fact, it almost certainly is),
but I was specifically disagreeing with the notion that it's right and
normal to write a bunch of platform-specific code in Python. That
should be the rarity.

ChrisA



More information about the Python-list mailing list