Re: Critic my module

2013-07-29 Thread Joshua Landau
On 29 July 2013 19:36, Lele Gaifax wrote: > This thread did not mention alternative and existing modules with > (almost) the same goal, two come to mind: > > * https://pypi.python.org/pypi/sh > * https://pypi.python.org/pypi/sarge Actually, I noted both those and plumbum. -- http://mail.python

Re: Critic my module

2013-07-29 Thread Devyn Collier Johnson
On 07/29/2013 02:36 PM, Lele Gaifax wrote: This thread did not mention alternative and existing modules with (almost) the same goal, two come to mind: * https://pypi.python.org/pypi/sh * https://pypi.python.org/pypi/sarge bye, lele. Thanks everyone for the feedback. Clearly, I should stop my p

Re: Critic my module

2013-07-29 Thread Lele Gaifax
This thread did not mention alternative and existing modules with (almost) the same goal, two come to mind: * https://pypi.python.org/pypi/sh * https://pypi.python.org/pypi/sarge bye, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad

Re: Critic my module

2013-07-29 Thread Devyn Collier Johnson
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() wil

Re: Critic my module

2013-07-29 Thread Schneider
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' t

Re: Critic my module

2013-07-27 Thread Jason Friedman
> > >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 > > Looks similar to https://pypi.pytho

Re: Critic my module

2013-07-27 Thread Devyn Collier Johnson
On 07/27/2013 11:14 AM, Jason Swails wrote: You've gotten plenty of good advice from people discussing the coding and coding style itself, I'll provide some feedback from the vantage point of a perspective user. On Thu, Jul 25, 2013 at 9:24 AM, Devyn Collier Johnson mailto:devyncjohn...@gma

Re: Critic my module

2013-07-27 Thread Dave Angel
On 07/27/2013 12:32 PM, Alister wrote: On Sat, 27 Jul 2013 08:56:10 -0400, Devyn Collier Johnson wrote: Good point about the Made by/Copyright suggestion. Although, I have not copyrighted the file, can I still say "Copyrighted by ...".-- There is no special process to Copyright anything. the

Re: Critic my module

2013-07-27 Thread Alister
On Sat, 27 Jul 2013 08:56:10 -0400, Devyn Collier Johnson wrote: > > Good point about the Made by/Copyright suggestion. Although, I have not > copyrighted the file, can I still say "Copyrighted by ...".-- There is no special process to Copyright anything. the simple act of writing it automatical

Re: Critic my module

2013-07-27 Thread Chris Angelico
On Sat, Jul 27, 2013 at 3:53 PM, Devyn Collier Johnson wrote: > Would a Python3 game module be more useful? I plan to make a function that > rolls a die and prints the output (You got a 5) and other similar random > games. Taking someone else's module and learning to use it has a cost. Plus there

Re: Critic my module

2013-07-27 Thread Jason Swails
You've gotten plenty of good advice from people discussing the coding and coding style itself, I'll provide some feedback from the vantage point of a perspective user. On Thu, Jul 25, 2013 at 9:24 AM, Devyn Collier Johnson < devyncjohn...@gmail.com> wrote: > Aloha Python Users! > >I made a P

Re: Critic my module

2013-07-27 Thread Devyn Collier Johnson
On 07/27/2013 10:33 AM, Dave Angel wrote: On 07/27/2013 08:56 AM, Devyn Collier Johnson wrote: Somehow during this thread, you have changed your purpose for this library. It used to be a library that Python programmers could import and use. And now, it's a shell replacement? The u

Re: Critic my module

2013-07-27 Thread Dave Angel
On 07/27/2013 08:56 AM, Devyn Collier Johnson wrote: Somehow during this thread, you have changed your purpose for this library. It used to be a library that Python programmers could import and use. And now, it's a shell replacement? The user runs the Python interpreter, and types

Re: Critic my module

2013-07-27 Thread Chris Angelico
On Sat, Jul 27, 2013 at 2:19 PM, Devyn Collier Johnson wrote: > About the aliases, I have tried setting pwd() as an alias for "os.getcwd()", > but I cannot type "pwd()" and get the desired output. Instead, I must type > "pwd". I tested this in Guake running Python3.3. > os.getcwd() > '/home/c

Re: Critic my module

2013-07-27 Thread Devyn Collier Johnson
On 07/27/2013 09:35 AM, Dave Angel wrote: On 07/27/2013 09:19 AM, Devyn Collier Johnson wrote: About the aliases, I have tried setting pwd() as an alias for "os.getcwd()", but I cannot type "pwd()" and get the desired output. Instead, I must type "pwd". I tested this in Guake running

Re: Critic my module

2013-07-27 Thread Chris “Kwpolska” Warrick
On Sat, Jul 27, 2013 at 3:19 PM, Devyn Collier Johnson wrote: > About the aliases, I have tried setting pwd() as an alias for "os.getcwd()", > but I cannot type "pwd()" and get the desired output. Instead, I must type > "pwd". I tested this in Guake running Python3.3. > os.getcwd() > '/home/c

Re: Critic my module

2013-07-27 Thread Dave Angel
On 07/27/2013 09:19 AM, Devyn Collier Johnson wrote: About the aliases, I have tried setting pwd() as an alias for "os.getcwd()", but I cannot type "pwd()" and get the desired output. Instead, I must type "pwd". I tested this in Guake running Python3.3. >>> os.getcwd() '/home/collier'

Re: Critic my module

2013-07-27 Thread Devyn Collier Johnson
On 07/26/2013 10:48 PM, Steven D'Aprano wrote: As requested, some constructive criticism of your module. On Thu, 25 Jul 2013 09:24:30 -0400, Devyn Collier Johnson wrote: #!/usr/bin/python3 #Made by Devyn Collier Johnson, NCLA, Linux+, LPIC-1, DCTS What's NCLA, Linux+, LPIC-1, DCTS? Do these

Re: Critic my module

2013-07-27 Thread Devyn Collier Johnson
On 07/26/2013 10:48 PM, Steven D'Aprano wrote: As requested, some constructive criticism of your module. On Thu, 25 Jul 2013 09:24:30 -0400, Devyn Collier Johnson wrote: #!/usr/bin/python3 #Made by Devyn Collier Johnson, NCLA, Linux+, LPIC-1, DCTS What's NCLA, Linux+, LPIC-1, DCTS? Do these

Re: Critic my module

2013-07-26 Thread Steven D'Aprano
As requested, some constructive criticism of your module. On Thu, 25 Jul 2013 09:24:30 -0400, Devyn Collier Johnson wrote: > #!/usr/bin/python3 > #Made by Devyn Collier Johnson, NCLA, Linux+, LPIC-1, DCTS What's NCLA, Linux+, LPIC-1, DCTS? Do these mean anything? Are we supposed to know what th

Re: Critic my module

2013-07-26 Thread Joshua Landau
On 26 July 2013 16:08, Alister wrote: > > > > The main point of this is for shell users that are using Python and do > > not know some of the Python commands. This module would make Python more > > like a Linux shell. For instance, a shell user would type boash.uname() > > because they may not kn

Re: Critic my module

2013-07-26 Thread Alister
> > The main point of this is for shell users that are using Python and do > not know some of the Python commands. This module would make Python more > like a Linux shell. For instance, a shell user would type boash.uname() > because they may not know they can type "import platform; > platform.una

Re: Critic my module

2013-07-26 Thread Devyn Collier Johnson
On 07/25/2013 10:09 AM, Alain Ketterlin wrote: Devyn Collier Johnson writes: 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 othe

Re: Critic my module

2013-07-26 Thread Devyn Collier Johnson
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 On Thu 25 Jul 2013 03:24:30 PM CEST, Devyn Collier Johnson wrote: Aloha Python Users!

Re: Critic my module

2013-07-25 Thread Schneider
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 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

Re: Critic my module

2013-07-25 Thread Alain Ketterlin
Devyn Collier Johnson writes: >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 Good, but

Re: Critic my module

2013-07-25 Thread Joshua Landau
On 25 July 2013 14:24, 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 oth

Critic my module

2013-07-25 Thread Devyn Collier Johnson
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()