Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #51432

Re: Critic my module

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'example:': 0.03; 'output': 0.05; 'python3': 0.07; 'collier': 0.09; 'subject:module': 0.09; 'thu': 0.09; 'variable,': 0.09; 'python': 0.11; 'called,': 0.16; 'finds': 0.16; "module's": 0.16; 'python3.': 0.16; 'fix': 0.17; 'thanks,': 0.17; 'wrote:': 0.18; 'do.': 0.18; 'variable': 0.18; 'module': 0.19; 'examples': 0.20; '>>>': 0.22; 'example': 0.22; 'import': 0.22; '(in': 0.22; 'gmbh': 0.22; 'shell': 0.22; 'header :User-Agent:1': 0.23; 'lets': 0.24; 'looks': 0.24; 'second': 0.26; 'post': 0.26; '(for': 0.26; 'somewhere': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'unix': 0.29; 'easier': 0.31; 'received:10.0.0': 0.31; 'that.': 0.31; '>>>>': 0.31; 'closer': 0.31; 'allows': 0.31; 'linux': 0.33; 'common': 0.35; 'tool': 0.35; 'johnson': 0.35; 'point.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'licensed': 0.36; 'module.': 0.36; 'hi,': 0.36; 'received:10.0': 0.36; 'should': 0.36; 'list.': 0.37; 'received:10': 0.37; 'easily': 0.37; 'whatever': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'system.': 0.39; 'mailing': 0.39; 'called': 0.40; 'users': 0.40; 'release': 0.40; 'commands': 0.60; 'free': 0.61; 'email addr:gmail.com': 0.63; 'name': 0.63; 'our': 0.64; 'more': 0.64; 'bottom': 0.67; 'combining': 0.68; 'internet': 0.71; 'jul': 0.74; 'soon,': 0.74; 'behavior': 0.77; '260': 0.84; 'boa': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=TjYmYmkfmszdswHAOsS/QxztomHzbITf5K+SI3ikdao=; b=J/zn8eAm8RoRuQ+zOv/u2JgF/9Lg5IhYdIqQeDmkN5OAhBomOc98fiYT2pxL5AXscr H9oYFPYAJoYRtydNiT6TqcVTbltxjxcAOl0fanPke3vwElOVjz79wz3wcmn822ZSUUWI ajkKaS57byr41ssWtxuSBTmCDSGS3CmGK9Zu6bD9XE0E0jn4EL/ctJiMIqbC2YOCwGPv KYuz4ccCIkAWTLS+QODE0pDqXZ7EULd7zqA1OrAeeYNx5KWtvCBhmI5ABodiDQ0t+YSw b22n05Qj0KmUSgnjmVSX8zqnwxcMd5r9CXiIXxGTOQKxWZ6EpLHN/Z9qLPOrqhc7YBU5 9Ptg==
X-Received by 10.236.177.42 with SMTP id c30mr6964701yhm.10.1375096877404; Mon, 29 Jul 2013 04:21:17 -0700 (PDT)
Date Mon, 29 Jul 2013 07:21:14 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version 1.0
To "python-list@python.org >> Python Mailing List" <python-list@python.org>
Subject Re: Critic my module
References <51F1270E.6000704@Gmail.com> <51F12EFB.3070906@globe.de> <51F251F3.5030800@Gmail.com> <51F64AC8.2030003@globe.de>
In-Reply-To <51F64AC8.2030003@globe.de>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5223.1375096885.3114.python-list@python.org> (permalink)
Lines 90
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375096885 news.xs4all.nl 15876 [2001:888:2000:d::a6]:45377
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51432

Show key headers only | View raw


On 07/29/2013 06:58 AM, Schneider wrote:
> Hi,
>
> lets uses the ls example:
> the way you do it now implies, that you search your PATH variable 
> until it finds a
> program called 'ls'. So if we are able to change the PATH variable, 
> and put out own
> 'ls' somewhere in the (new) paths, calling you ls() will execute 
> whatever we want our
> own  ls' to do.
>
> Second remark: if the behavior of some tools is changed (for examples 
> with using aliases)
> we cannot expect the called tool (in the example: 'ls') to give the 
> same output on
> every system.
>
> this can be avoided (mostly) by ensuring that the right program (in 
> the example /bin/ls) is called, and not only ls.
>
> bg,
> Johannes
>
> On 07/26/2013 12:39 PM, Devyn Collier Johnson wrote:
>>
>> On 07/25/2013 09:58 AM, Schneider wrote:
>>> Hi,
>>>
>>> nice idea.
>>>
>>> mybe -  for security reasons - you should ensure, that the right 
>>> tool is called and not some tool put the path with the same name.
>>>
>>> bg,
>>> Johannes
>>>
>>> Devyn Collier Johnson <devyncjohnson@gmail.com>On Thu 25 Jul 2013 
>>> 03:24:30 PM CEST, Devyn Collier Johnson wrote:
>>>> Aloha Python Users!
>>>>
>>>>    I made a Python3 module that allows users to use certain Linux
>>>> shell commands from Python3 more easily than using os.system(),
>>>> subprocess.Popen(), or subprocess.getoutput(). This module (once
>>>> placed with the other modules) can be used like this
>>>>
>>>> import boash; boash.ls()
>>>>
>>>>    I attached the module. I plan to release it on the Internet soon,
>>>> but feel free to use it now. It is licensed under LGPLv3.
>>>>
>>>>    The name comes from combining "Boa" with "SHell". Notice that the
>>>> module's name almost looks like "BASH", a common Linux shell. The Boa
>>>> is a constrictor snake. This module makes Unix shells easier to use
>>>> via Python3. This brings the system shell closer to the Python shell.
>>>>
>>>>
>>>> Mahalo,
>>>>
>>>> Devyn Collier Johnson
>>>> DevynCJohnson@Gmail.com
>>>>
>>>>
>>>
>>>
>>>
>>> -- 
>>> GLOBE Development GmbH
>>> Königsberger Strasse 260
>>> 48157 MünsterGLOBE Development GmbH
>>> Königsberger Strasse 260
>>> 48157 Münster
>>> 0251/5205 390
>>
>> What do you mean by that Schneider?
>>
>> Mahalo,
>>
>> Devyn Collier Johnson
>> DevynCJohnson@Gmail.com
>
>

Thanks, good point. I will fix that. BTW, we bottom post on this mailing 
list.

Mahalo,

DCJ

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Critic my module Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-07-29 07:21 -0400

csiph-web