Is a Metaclass the appropriate way to solve this problem?

2013-08-07 Thread Matthew Lefavor
All: Like most people, I find the whole metaclass topic pretty obscure, and I have avoided trying to use one for a while. I am also aware of Tim Peter's famous advice that if you have to ask whether you need a metaclass, then you almost certainly don't. But in this case I know I am solving a probl

Re: Python Script Hashplings

2013-07-26 Thread Matthew Lefavor
> > > Thanks Matthew Lefavor! But specifically, why use "#!/usr/bin/env python3" > instead of "#!/usr/bin/python3"? > The "env" program looks up its argument in the current $PATH environment variable, and then executes that. This means you aren

Re: Is it that easy to install Python ?

2013-07-25 Thread Matthew Lefavor
On Thu, Jul 25, 2013 at 11:11 AM, wrote: > Hi there, > > I never write any Python program but as a system administrator, I'm often > asked to install python on Debian servers. > > I just finished downloading, configuring, making and installing. > > The binary is now installed in : > /usr/local/Py

Re: Python Script Hashplings

2013-07-25 Thread Matthew Lefavor
The answer is "probably not." If you just want to use the latest version of Python 3 you have installed on your system, use: "#!/usr/bin/python3". When you use the specific minor version numbers, they point to that specific minor version. Actually, the preferred shebang line is of the form: "#!/us

Re: Messages to Python-List aren't posting

2013-07-19 Thread Matthew Lefavor
Well, it seems like the last message I posted did post in time. I'll keep tabs on the issue and email the postmaster if it persists. Matthew Lefavor On Fri, Jul 19, 2013 at 11:00 AM, Chris Angelico wrote: > On Sat, Jul 20, 2013 at 12:57 AM, Skip Montanaro wrote: > >> One

Re: Messages to Python-List aren't posting

2013-07-19 Thread Matthew Lefavor
(nor all Gmail users, for that matter), the only thing that's constant here is that it's my name (well, and my password, but one would hope that passwords aren't relevant here). Is it possible that the name "Matthew Lefavor" has been added to a greylist or something? One re

Messages to Python-List aren't posting

2013-07-19 Thread Matthew Lefavor
ng to gmail has had no effect. Is there some obscure setting I am missing? Has anybody else had this problem? Matthew Lefavor -- http://mail.python.org/mailman/listinfo/python-list

KeyboardInterrupt in Subproccesses

2013-07-19 Thread Matthew Lefavor
All: I am maintaining a program in Python 2 and need to send it a KeyboardInterrupt to close it. Unfortunately, the program is used as a subprocess in a wrapper subprocess, and so I cannot just directly press CTL-C; I have to use a signal. When I run the program "bare" (not in a subprocess), I ha