Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Windows': 0.02; 'subject:PEP': 0.07; 'subject:support': 0.07; 'deprecated': 0.09; 'pep': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; 'awesome.': 0.16; 'deferred': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:API': 0.16; 'url:peps': 0.16; 'wrote:': 0.18; 'library': 0.18; 'differ': 0.19; 'thu,': 0.19; 'seems': 0.21; '>>>': 0.22; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'subject: .': 0.24; 'url:dev': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'layer': 0.31; 'linux.': 0.31; 'probably': 0.32; 'linux': 0.33; 'url:python': 0.33; 'fri,': 0.33; 'maybe': 0.34; 'skip:d 20': 0.34; 'subject:from': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'url:org': 0.36; 'being': 0.38; 'pm,': 0.38; 'that,': 0.38; 'bad': 0.39; 'itself': 0.39; 'ian': 0.60; 'no.': 0.61; 'skip:* 10': 0.61; 'you.': 0.62; 'different': 0.65; 'within': 0.65; 'due': 0.66; 'between': 0.67; '11:44': 0.84; '2015': 0.84; 'cultures,': 0.84; 'subject:skip:F 10': 0.84; 'underneath': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=44MNC9fQGWZIBzF6EGtG5l3HONvlFapTaE9fjeETJfY=; b=U3N+rUCp4RBYRtjLZrYpHH7XIcQOKMqVjEFkipiJz7pgW0BJKBgx4+XdSl1x0brALa mjQg4kd1fA8K8WlkzmX68UtYbZrQZiIyalFNM0PTq+cx6IFWXibDrbiBydyzguAvu0ky dBeszni5VrKSafNgZrVhGZIcSQoQPVB+mX12zQ8jrZ2EzyMcpZuTLHHdisW4ymKKycYD tPRFVrhADvzL91tReve4/rZ1RU1VumqPzeIyB0USQvPmXzU/3qTTOvUVsdnTy7B+bQUA UDPd9Ymtx6DNil2u9cxewvkFtIXGHjg2XMFytsGSZGN/TKRf1kTonlk8UefWo+3nNB5Y B4Yg== MIME-Version: 1.0 X-Received: by 10.50.43.196 with SMTP id y4mr1397086igl.14.1431049582926; Thu, 07 May 2015 18:46:22 -0700 (PDT) In-Reply-To: References: <554AB8A5.708@davea.name> <554adcf8$0$11103$c3e8da3@news.astraweb.com> <1c51085e-7795-4afc-9a4c-ad8b3f3a73a6@googlegroups.com> <87ioc4k89v.fsf@elektro.pacujo.net> <554B4C49.7010500@davea.name> <87a8xgk1ad.fsf@elektro.pacujo.net> <876184jyd4.fsf@elektro.pacujo.net> Date: Fri, 8 May 2015 11:46:22 +1000 Subject: Re: PEP idea: On Windows, subprocess should implicitly support .bat and .cmd scripts by using FindExecutable from win32 API From: Chris Angelico Cc: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431049585 news.xs4all.nl 2886 [2001:888:2000:d::a6]:45170 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90109 On Fri, May 8, 2015 at 1:14 AM, Ian Kelly wrote: > On Thu, May 7, 2015 at 8:03 AM, Chris Angelico wrote: >> On Thu, May 7, 2015 at 11:44 PM, Marko Rauhamaa 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