debug 'continue' does not appear to work right

2005-12-12 Thread newsposter
When I enter 'c' at the (Pdb) prompt it just goes to the next line, and doesn't "continue" as it should. Here's the sample program: # epdb1.py -- experiment with the Python debugger, pdb import pdb a = "aaa" pdb.set_trace() b = "bbb" c = "ccc" final = a + b + c print final Here's the sample outp

Re: debug 'continue' does not appear to work right

2005-12-12 Thread newsposter
I was running the above from the command-line, but when I run the program within IDLE, 'c', continue, works as it should. -Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: debug 'continue' does not appear to work right

2005-12-13 Thread newsposter
Ok, thanks. I see what the problem is. I am working on an application which requires Python 2.1, but I also installed Python 2.4.2. It appears that my path for the command-lines is setup with 2.1 first. Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

How to use pydoc?

2005-12-16 Thread newsposter
>>> import pydoc >>> import sys >>> sys.version '2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]' >>> pydoc sys SyntaxError: invalid syntax >>> The documentation for pydoc says: "Run "pydoc " to show documentation on something." What am I missing? Thanks! Chris -- http://mail.py

Re: How to use pydoc?

2005-12-16 Thread newsposter
Thanks for replying Peter, but none of your suggestions are working. S:\projects\C2PC\src>python -m Unknown option: -m usage: python [option] ... [-c cmd | file | -] [arg] ... I should also be able to run 'pydoc -g' to start a webserver. I guess I will have to write the author of pydoc for an an

Re: How to use pydoc?

2005-12-16 Thread newsposter
Thanks Peter. I do have two versions, with the older one existing for compatibility with another application. Option -m works with 2.42. I neglected to check this when I ran from the command-line. Thanks, Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use pydoc?

2005-12-16 Thread newsposter
Thanks! Yes, it brings up a documentation server, and serves up some nicely formatted documentation. Learning learning... -Chris -- http://mail.python.org/mailman/listinfo/python-list