Some python syntax that I'm not getting

2007-12-07 Thread waltbrad
Hello. Been studying Python for about a week now. I did a quick read of the tutorial in the manual and I'm reading Programming Python by Mark Lutz. I'm still getting used to the Python syntax, but I'm able to pretty much follow what is being said. But tonight Lutz was talking about implementing

python from any command line?

2007-12-09 Thread waltbrad
Hi folks. I'm learning Python from the Mark Lutz Book, Programming Python 3rd edition. He seems to be able to invoke the Python interpreter from any command line prompt. C:\temp>python C:\PP3rdEd\examples>python C:\PP3rdEd\Examples\PP3E\System>cd Whereas I am only able to invoke it when the co

Re: python from any command line?

2007-12-09 Thread waltbrad
On Dec 9, 8:54 am, Adonis Vargas <[EMAIL PROTECTED]> wrote: > waltbrad wrote: > > Hi folks. I'm learning Python from the Mark Lutz Book, Programming > > Python 3rd edition. > > > He seems to be able to invoke the Python interpreter from any command > >

shelve.open call gives error

2008-02-08 Thread waltbrad
Working through the Mark Lutz book Programming Python 3rd Edition. A couple of modules in the "Preview" chapter give me errors. Both on a shelve.open call: Pretty simple code, (2nd example): =code begin= import shelve from people import Person, Manager bob = Person('Bob Smith', 42, 3

Re: shelve.open call gives error

2008-02-08 Thread waltbrad
On Feb 8, 5:29 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 08 Feb 2008 06:36:53 -0200, waltbrad <[EMAIL PROTECTED]> > escribió: > > > > > Working through the Mark Lutz book Programming Python 3rd Edition. > > > A couple of module

I cannot evaluate this statement...

2008-03-07 Thread waltbrad
The script comes from Mark Lutz's Programming Python. It is the second line of a script that will launch a python program on any platform. import os, sys pyfile = (sys.platform[:3] == 'win' and 'python.exe') or 'python' Okay, run on a win32 machine, pyfile evaluates to python.exe That makes sen

questions about named pipe objects...

2008-03-17 Thread waltbrad
I'm proceeding slowly though the Lutz book "Programming Python". I'm in the section on named pipes. The script he uses has two functions: one for the child the other for the parent. You start the parent then the child: python pipefifo.py #starts the parent file /tmp/pipefifo # shows that the f

Re: questions about named pipe objects...

2008-03-17 Thread waltbrad
On Mar 17, 1:50 pm, waltbrad <[EMAIL PROTECTED]> wrote: > > I then wanted to start the child process first and see what happened > when I ran the parent. Well that works but the reads come out in > random order. Well, I take that back. I accidentally had two 'parent' p

Re: questions about named pipe objects...

2008-03-17 Thread waltbrad
On Mar 17, 1:59 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > > A Unix fifo is only nominally a file. It's really just a convenient way > of referring to an in-memory object. > mkfifo f > some_prog > f & > cat f > > Is semantically equivalent to: > > some_prog | cat > > If you w

Running a python program as main...

2008-03-26 Thread waltbrad
Stumbling through Mark Lutz's "Programming Python 3rd", he gives an example of a program that will automatically configure environment settings and launch other programs. Then he gives an example of running this program. On his command line he types: C:\...\PP3E>Launcher.py and this begins the

uninstall before upgrade?

2009-01-18 Thread waltbrad
I want to upgrade from 2.5 to 2.6. Do I need to uninstall 2.5 before I do that? If so, what's the best way to uninstall it? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

PYTHONPATH in Windows

2008-11-29 Thread waltbrad
PYTHONPATH is a concept I've never been able to get straight. I can't see the difference between this and just setting paths in the Windows environment variables. So, for the longest time I just never worried about it. Now, I'm going through James Bennett's "Practical Django Projects" and the iss

Re: PYTHONPATH in Windows

2008-11-29 Thread waltbrad
On Nov 29, 1:39 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > waltbrad schrieb: > > > > > PYTHONPATH is a concept I've never been able to get straight.  I can't > > see the difference between this and just setting paths in the Windows >