Re: Maximum recursion depth exceeded...why?

2009-02-19 Thread Thomas Allen
On Feb 18, 10:15 pm, rdmur...@bitdance.com wrote: Thomas Allen thomasmal...@gmail.com wrote: On Feb 18, 4:51 am, alex23 wuwe...@gmail.com wrote: On Feb 18, 7:34 pm, rdmur...@bitdance.com wrote: Yeah, but wget -r -k will do that bit of it, too. Wow, nice, I don't know why I never

Re: Maximum recursion depth exceeded...why?

2009-02-18 Thread rdmurray
alex23 wuwe...@gmail.com wrote: On Feb 18, 11:36=A0am, Paul Rubin http://phr...@nospam.invalid wrote: Thomas Allen thomasmal...@gmail.com writes: attempting. Basically, I'm transforming a live site to a local one and Something wrong with wget -R ? Did you mean wget -r ? That will

Re: Maximum recursion depth exceeded...why?

2009-02-18 Thread alex23
On Feb 18, 7:34 pm, rdmur...@bitdance.com wrote: Yeah, but wget -r -k will do that bit of it, too. Wow, nice, I don't know why I never noticed that. Cheers! -- http://mail.python.org/mailman/listinfo/python-list

Re: Maximum recursion depth exceeded...why?

2009-02-18 Thread Thomas Allen
On Feb 18, 4:51 am, alex23 wuwe...@gmail.com wrote: On Feb 18, 7:34 pm, rdmur...@bitdance.com wrote: Yeah, but wget -r -k will do that bit of it, too. Wow, nice, I don't know why I never noticed that. Cheers! Hm...doesn't do that over here. I thought it may have been because of absolute

Re: Maximum recursion depth exceeded...why?

2009-02-18 Thread rdmurray
Thomas Allen thomasmal...@gmail.com wrote: On Feb 18, 4:51 am, alex23 wuwe...@gmail.com wrote: On Feb 18, 7:34 pm, rdmur...@bitdance.com wrote: Yeah, but wget -r -k will do that bit of it, too. Wow, nice, I don't know why I never noticed that. Cheers! Hm...doesn't do that over here.

Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env python import os, sys def main(): absToRel(sys.argv[1],

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Christian Heimes
Thomas Allen schrieb: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env python import os, sys def main():

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Martin v. Löwis
Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? def main(): absToRel(sys.argv[1], sys.argv[2]) def

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 4:46 pm, Thomas Allen thomasmal...@gmail.com wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Peter Otten
Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env python import os, sys def main():

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 5:31 pm, Peter Otten __pete...@web.de wrote: Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded?

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Peter Otten
Thomas Allen wrote: On Feb 17, 5:31 pm, Peter Otten __pete...@web.de wrote: Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 6:05 pm, Peter Otten __pete...@web.de wrote: Thomas Allen wrote: On Feb 17, 5:31 pm, Peter Otten __pete...@web.de wrote: Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread MRAB
Thomas Allen wrote: I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env python import os, sys def main():

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Christian Heimes
Thomas Allen wrote: I'm referring to the same code, but with a print: for file in os.listdir(dir): if os.path.isdir(file): print D, file in place of the internal call to absToRel...and only one line prints such a message. I mean, if I can't trust my OS or its Python

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Paul Rubin
Thomas Allen thomasmal...@gmail.com writes: attempting. Basically, I'm transforming a live site to a local one and Something wrong with wget -R ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 7:05 pm, Christian Heimes li...@cheimes.de wrote: Thomas Allen wrote: I'm referring to the same code, but with a print: for file in os.listdir(dir):     if os.path.isdir(file):         print D, file in place of the internal call to absToRel...and only one line prints such

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Christian Heimes
Thomas Allen wrote: If you'd read the messages in this thread you'd understand why I'm not using os.walk(): I'm not using it because I need my code to be aware of the current recursion depth so that the correct number of ../ are substituted in. I'm well aware of your messages and your

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 9:08 pm, Christian Heimes li...@cheimes.de wrote: Thomas Allen wrote: If you'd read the messages in this thread you'd understand why I'm not using os.walk(): I'm not using it because I need my code to be aware of the current recursion depth so that the correct number of ../ are

Re: Maximum recursion depth exceeded...why?

2009-02-17 Thread alex23
On Feb 18, 11:36 am, Paul Rubin http://phr...@nospam.invalid wrote: Thomas Allen thomasmal...@gmail.com writes: attempting. Basically, I'm transforming a live site to a local one and Something wrong with wget -R ? Did you mean wget -r ? That will just grab the entire site, though. I'm