Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51431 > unrolled thread
| Started by | Schneider <js@globe.de> |
|---|---|
| First post | 2013-07-29 12:58 +0200 |
| Last post | 2013-07-29 12:58 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Critic my module Schneider <js@globe.de> - 2013-07-29 12:58 +0200
| From | Schneider <js@globe.de> |
|---|---|
| Date | 2013-07-29 12:58 +0200 |
| Subject | Re: Critic my module |
| Message-ID | <mailman.5222.1375095532.3114.python-list@python.org> |
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 -- GLOBE Development GmbH Königsberger Strasse 260 48157 MünsterGLOBE Development GmbH Königsberger Strasse 260 48157 Münster 0251/5205 390
Back to top | Article view | comp.lang.python
csiph-web