Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'subject:ANN': 0.02; 'subject:module': 0.04; 'library,': 0.05; 'subject:library': 0.09; 'to:addr:comp.lang.python': 0.09; 'url:github': 0.09; 'api': 0.09; 'parsed': 0.16; 'subject:subprocess': 0.16; 'url:aht': 0.16; 'cc:addr:python- list': 0.16; 'written': 0.19; 'header:In-Reply-To:1': 0.22; 'string': 0.24; 'command': 0.24; 'language.': 0.28; "i'm": 0.28; 'extreme': 0.29; 'cc:addr:python.org': 0.29; '(so': 0.30; 'comments:': 0.30; 'construct': 0.30; 'oop': 0.30; 'taken.': 0.30; 'threads': 0.30; 'does': 0.32; 'header:User-Agent:1': 0.33; 'something': 0.35; 'cc:2**1': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'similar': 0.37; 'using': 0.37; 'another': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'unless': 0.39; 'received:209': 0.39; 'simple': 0.61; 'here': 0.64; 'care': 0.71; 'cc:addr:comp-lang-python-announce': 0.84; 'cc:addr:moderators.isc.org': 0.84; 'for).': 0.91 Newsgroups: comp.lang.python Date: Sun, 12 Feb 2012 01:41:16 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=27.2.243.51; posting-account=MVB8YgoAAACc-CaFsZLRUc7a0K5QQLP7 References: User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: ANN: Sarge, a library wrapping the subprocess module, has been released. From: Anh Hai Trinh To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org, comp-lang-python-announce@moderators.isc.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1329039680 news.xs4all.nl 6880 [2001:888:2000:d::a6]:38549 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20261 Having written something with similar purpose (https://github.com/aht/extpr= oc), here are my comments: * Having command parsed from a string is complicated. Why not just have an = OOP API to construct commands? extproc does this, but you opted to write a = recursive descent parser. I'm sure it's fun but I think simple is better th= an complex. Most users would prefer not to deal with Python, not another la= nguage. * Using threads and fork()ing process does not play nice together unless ex= treme care is taken. Disasters await. For a shell-like library, I would rec= ommend its users to never use threads (so that those who do otherwise know = what they are in for).