X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!news.muarf.org!news.roellig-ltd.de!open-news-network.org!border2.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Windows': 0.02; 'subject:PEP': 0.07; 'subject:support': 0.07; 'deprecated': 0.09; 'subject:using': 0.09; 'windows': 0.15; 'awesome.': 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; 'programming': 0.22; 'subject: .': 0.24; 'url:dev': 0.24; 'header:In-Reply-To:1': 0.27; '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; '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; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'no.': 0.61; 'skip:* 10': 0.61; 'you.': 0.62; 'different': 0.65; 'within': 0.65; 'between': 0.67; '11:44': 0.84; '2015': 0.84; 'cultures,': 0.84; 'subject:skip:F 10': 0.84; 'underneath': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WKe9jxnhbGiKBQu3TFp0gH3I+4NTzZMJ+tqjd4WNBvM=; b=olMt8xGQGMOMeVZc5XiasHmCiUrCNyGjSf37txxtecrUT3XR1FAWEkTI7nQx3eyrzv UcFtJ7kymDhP/R/nmZ35x/7OLRZi8Jkd1jJts8vv2a9HIkjCAcmUgkWaf5hspfsr30g0 pR6dgEoBsqPdAe7mt7ZTzrqKoaO0pcE+l11ycNVT28WA3QoK32/PsPz7JjTbjkxOPYFG unyTAKbIJ62eetSfSzWpBJWCjT4JVwDDDQkZtKw6RGi0Mn/qqjNTGEYiDPwNa2stDRjn hQTcCeQnbMsPNseuI9nTC21FKNzDYxi8LvSK4dl4x89LIiTZ6AQXOBpV+6i47YHkguWE H5HA== X-Received: by 10.50.30.105 with SMTP id r9mr15202188igh.11.1431011715170; Thu, 07 May 2015 08:15:15 -0700 (PDT) MIME-Version: 1.0 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> From: Ian Kelly Date: Thu, 7 May 2015 09:14:34 -0600 Subject: Re: PEP idea: On Windows, subprocess should implicitly support .bat and .cmd scripts by using FindExecutable from win32 API To: 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431011723 news.xs4all.nl 2872 [2001:888:2000:d::a6]:55909 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90103 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/