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 21:46:22 EDT 2015


On Fri, May 8, 2015 at 1:14 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Thu, May 7, 2015 at 8:03 AM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Thu, May 7, 2015 at 11:44 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>>> Whole programming cultures, idioms and "right ways" differ between
>>> platforms. What's the right way to write a service (daemon)? That's
>>> probably completely different between Windows and Linux. Linux itself is
>>> undergoing a biggish transformation there: an exemplary daemon of last
>>> year will likely be deprecated within a few years.
>>
>> And that's where a library function can be really awesome. What's the
>> right way to daemonize? "import daemonize; daemonize.daemonize()"
>> seems good to me. Maybe there's platform-specific code in the
>> *implementation* of that, but in your application, no. That's the job
>> of a layer underneath you.
>
> https://www.python.org/dev/peps/pep-3143/

Precisely. It's definitely within the language's purview; that that
PEP is deferred is not due to it being a bad idea for the
language/stdlib to deal with these differences.

ChrisA



More information about the Python-list mailing list