Re: urllib download insanity

2005-05-12 Thread Paul Rubin
Skip Montanaro <[EMAIL PROTECTED]> writes: > Timothy> downloading the OLD file i've deleted! if i download it via IE, > Timothy> i get the new file. SO, my only conculsion is that urllib is > Timothy> caching it some where. BUT i'm already calling urlcleanup(), so > Timothy> what el

Re: urllib download insanity

2005-05-12 Thread Andrew Dalke
Timothy Smith wrote: > ok what i am seeing is impossible. > i DELETED the file from my webserver, uploaded the new one. when my app > logs in it checks the file, if it's changed it downloads it. the > impossible part, is that on my pc is downloading the OLD file i've > deleted! if i download it

Re: urllib download insanity

2005-05-12 Thread Skip Montanaro
Timothy> i DELETED the file from my webserver, uploaded the new Timothy> one. when my app logs in it checks the file, if it's changed it Timothy> downloads it. the impossible part, is that on my pc is Timothy> downloading the OLD file i've deleted! if i download it via IE, Timo

urllib download insanity

2005-05-11 Thread Timothy Smith
ok what i am seeing is impossible. i DELETED the file from my webserver, uploaded the new one. when my app logs in it checks the file, if it's changed it downloads it. the impossible part, is that on my pc is downloading the OLD file i've deleted! if i download it via IE, i get the new file. SO,

Re: re Insanity

2005-01-26 Thread Tim Daneliuk
Aahz wrote: In article <[EMAIL PROTECTED]>, Tim Daneliuk <[EMAIL PROTECTED]> wrote: Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile(r'\[PROMPT:.*\]') Which works fine when the text is exactly "[PROMPT:w

Re: re Insanity

2005-01-25 Thread Aahz
In article <[EMAIL PROTECTED]>, Tim Daneliuk <[EMAIL PROTECTED]> wrote: > >Given an arbitrary string, I want to find each individual instance of >text in the form: "[PROMPT:optional text]" > >I tried this: > > y=re.compile(r'\[PROMPT:.*\]') > >Which works fine when the text is exactly "[PROMP

Re: Insanity

2005-01-23 Thread Tim Daneliuk
Fredrik Lundh wrote: Tim Daneliuk wrote: Thanks - very helpful. One followup - your re works as advertised. But if I use: r'\[PROMPT:[^]].*\]' it seems not to. the '.*' instead of just '*' it matches the entire string ... it's not "just '*'", it's "[^]]*". it's the "^]" set (anything but ])

Re: re Insanity

2005-01-23 Thread Tim Daneliuk
Orlando Vazquez wrote: Tim Daneliuk wrote: For some reason, I am having the hardest time doing something that should be obvious. (Note time of posting ;) Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile

Re: Insanity

2005-01-23 Thread Fredrik Lundh
Tim Daneliuk wrote: > Thanks - very helpful. One followup - your re works as advertised. But > if I use: r'\[PROMPT:[^]].*\]' it seems not to. the '.*' instead of just '*' > it matches the entire string ... it's not "just '*'", it's "[^]]*". it's the "^]" set (anything but ]) that's repeate

Re: re Insanity

2005-01-23 Thread Orlando Vazquez
Tim Daneliuk wrote: For some reason, I am having the hardest time doing something that should be obvious. (Note time of posting ;) Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile(r'\[PROMPT:.*\]') Whic

Re: Insanity

2005-01-23 Thread Tim Daneliuk
Fredrik Lundh wrote: Tim Daneliuk wrote: Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile(r'\[PROMPT:.*\]') Which works fine when the text is exactly "[PROMPT:whatever]" didn't you leave something out h

Re: re Insanity

2005-01-22 Thread Duncan Booth
Tim Daneliuk wrote: > > I tried this: > > y=re.compile(r'\[PROMPT:.*\]') > > Which works fine when the text is exactly "[PROMPT:whatever]" but > does not match on: > > "something [PROMPT:foo] something [PROMPT:bar] something ..." > > The overall goal is to identify the beginning and

Re: Insanity

2005-01-22 Thread Fredrik Lundh
Tim Daneliuk wrote: > Given an arbitrary string, I want to find each individual instance of > text in the form: "[PROMPT:optional text]" > > I tried this: > > y=re.compile(r'\[PROMPT:.*\]') > > Which works fine when the text is exactly "[PROMPT:whatever]" didn't you leave something out here?

re Insanity

2005-01-22 Thread Tim Daneliuk
For some reason, I am having the hardest time doing something that should be obvious. (Note time of posting ;) Given an arbitrary string, I want to find each individual instance of text in the form: "[PROMPT:optional text]" I tried this: y=re.compile(r'\[PROMPT:.*\]') Which works fine when th