Re: "Breaking" the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
Jean-Michel Pichavant wrote: vsoler wrote: Hello, I am still learning python, thus developnig small scripts. Some of them consist only of the main module. While testing them (debugging) I sometimes want to stop the script at a certain point, with something likestop, break, end or somethi

Re: "Breaking" the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
vsoler wrote: Hello, I am still learning python, thus developnig small scripts. Some of them consist only of the main module. While testing them (debugging) I sometimes want to stop the script at a certain point, with something likestop, break, end or something similar. What statement ca

Re: "Breaking" the __main__ script

2010-03-15 Thread Jean-Michel Pichavant
Steve Holden wrote: pyt...@bdurham.com wrote: Any reason you prefer PDB over WinPDB? http://winpdb.org/ Yes. I don't have Windows except one one PC :P WinPDB runs on non-Windows platforms :) One might reasonably argue that it has a pretty couter-intuitive name, then.

Re: "Breaking" the __main__ script

2010-03-14 Thread Steve Holden
pyt...@bdurham.com wrote: >>> Any reason you prefer PDB over WinPDB? >>> http://winpdb.org/ > >> Yes. I don't have Windows except one one PC :P > > WinPDB runs on non-Windows platforms :) > One might reasonably argue that it has a pretty couter-intuitive name, then. regards Steve -- Steve Hol

Re: "Breaking" the __main__ script

2010-03-14 Thread Michael Rudolf
Am 14.03.2010 21:08, schrieb pyt...@bdurham.com: Any reason you prefer PDB over WinPDB? http://winpdb.org/ Yes. I don't have Windows except one one PC :P WinPDB runs on non-Windows platforms :) Uh, OK. Then the name mislead me ;) But yeah, I prefer a console based debugger. -- http://mail.pyt

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf wrote: > Am 14.03.2010 16:03, schrieb pyt...@bdurham.com: > > > Any reason you prefer PDB over WinPDB? > >http://winpdb.org/ > > Yes. I don't have Windows except one one PC :P Sorry, i hit the wrong key. Again: winpdb is crossplatform. It uses a wxwindows gui. Nam

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 20:35, Michael Rudolf wrote: > Am 14.03.2010 16:03, schrieb pyt...@bdurham.com: > > > Any reason you prefer PDB over WinPDB? > >http://winpdb.org/ > > Yes. I don't have Windows except one one PC :P WinPdb is crossplatform. Is build with -- http://mail.python.org/mailman/listinfo/pytho

Re: "Breaking" the __main__ script

2010-03-14 Thread python
>> Any reason you prefer PDB over WinPDB? >> http://winpdb.org/ > Yes. I don't have Windows except one one PC :P WinPDB runs on non-Windows platforms :) Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: "Breaking" the __main__ script

2010-03-14 Thread Michael Rudolf
Am 14.03.2010 16:03, schrieb pyt...@bdurham.com: Any reason you prefer PDB over WinPDB? http://winpdb.org/ Yes. I don't have Windows except one one PC :P -- http://mail.python.org/mailman/listinfo/python-list

Re: "Breaking" the __main__ script

2010-03-14 Thread Tim Chase
pyt...@bdurham.com wrote: Or you could use a real debugger, like pdb http://docs.python.org/library/pdb.html Any reason you prefer PDB over WinPDB? http://winpdb.org/ I always count "in the standard library" as a big plus over any add-ons It's nice to know about alternatives such as WinPDB,

Re: "Breaking" the __main__ script

2010-03-14 Thread python
Michael, > Or you could use a real debugger, like pdb > http://docs.python.org/library/pdb.html Any reason you prefer PDB over WinPDB? http://winpdb.org/ Thanks, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: "Breaking" the __main__ script

2010-03-14 Thread Joaquin Abian
On 14 mar, 12:34, vsoler wrote: > Hello, > > I am still learning python, thus developnig small scripts. > > Some of them consist only of the main module. While testing them > (debugging) I sometimes want to stop the script at a certain point, > with something like    stop, break, end   or somethin

Re: "Breaking" the __main__ script

2010-03-14 Thread Steve Holden
Mark Lawrence wrote: > vsoler wrote: >> Hello, >> >> I am still learning python, thus developnig small scripts. >> >> Some of them consist only of the main module. While testing them >> (debugging) I sometimes want to stop the script at a certain point, >> with something likestop, break, end

Re: "Breaking" the __main__ script

2010-03-14 Thread Michael Rudolf
Am 14.03.2010 12:53, schrieb Mark Lawrence: vsoler wrote: I sometimes want to stop the script at a certain point, with something like stop, break, end or something similar. What statement can I use? Something like import sys sys.exit()? Or just "raise SystemExit", "raise SyntaxError" or any o

Re: "Breaking" the __main__ script

2010-03-14 Thread Mark Lawrence
vsoler wrote: Hello, I am still learning python, thus developnig small scripts. Some of them consist only of the main module. While testing them (debugging) I sometimes want to stop the script at a certain point, with something likestop, break, end or something similar. What statement ca