Re: "Maximum recursion depth exceeded"...why?

2009-02-19 Thread Thomas Allen
On Feb 18, 10:15 pm, rdmur...@bitdance.com wrote: > Thomas Allen wrote: > > On Feb 18, 4:51 am, alex23 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! > > >

Re: "Maximum recursion depth exceeded"...why?

2009-02-18 Thread rdmurray
Thomas Allen wrote: > On Feb 18, 4:51 am, alex23 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 bee

Re: "Maximum recursion depth exceeded"...why?

2009-02-18 Thread Thomas Allen
On Feb 18, 4:51 am, alex23 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 links (not to s

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 rdmurray
alex23 wrote: > On Feb 18, 11:36=A0am, Paul Rubin wrote: > > Thomas Allen 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

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread alex23
On Feb 18, 11:36 am, Paul Rubin wrote: > Thomas Allen 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 guessing that Thomas'

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 9:08 pm, Christian Heimes 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 > > subst

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

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 7:05 pm, Christian Heimes 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 Paul Rubin
Thomas Allen 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 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 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(): absToRel(sy

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 it

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

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 > > exc

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, 4:46 pm, 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,

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]) >

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 mai

"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], sys.argv[2]