Re: Python-list Digest, Vol 22, Issue 82

2005-07-05 Thread Vibha Tripathi
hment [ Download File | Save to Yahoo! Briefcase ] "Vibha Tripathi" <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I put a Regular Expression question on this list a > couple days ago. I would like to rephrase my question > as below: > > In the Python re.sub(regex

Python Regular Expressions: re.sub(regex, replacement, subject)

2005-07-05 Thread Vibha Tripathi
Hi Folks, I put a Regular Expression question on this list a couple days ago. I would like to rephrase my question as below: In the Python re.sub(regex, replacement, subject) method/function, I need the second argument 'replacement' to be another regular expression ( not a string) . So when I fin

Regular Expression for pattern substitution

2005-07-01 Thread Vibha Tripathi
It'd be silly to write the code for it if it already exists somewhere in the Python re or sre library module: I need to find and replace all strings in a text file from a certain pattern to another pattern. so for example if I see 'this(\D*)that' anywhere in the file then I'd like to make is 'tha

Re: Set of Dictionary

2005-06-16 Thread Vibha Tripathi
Thanks for the responses! I tried using list - the real question now is how do I remove duplicate dictionaries? I will try things to work around it...suggestions are welcome. peace. --- Konstantin Veretennicov <[EMAIL PROTECTED]> wrote: > On 6/16/05, Vibha Tripathi <[EMA

Re: Set of Dictionary

2005-06-16 Thread Vibha Tripathi
--- Konstantin Veretennicov <[EMAIL PROTECTED]> wrote: > On 6/16/05, Vibha Tripathi <[EMAIL PROTECTED]> > wrote: > > Hi Folks, > > > > I know sets have been implemented using dictionary > but > > I absolutely need to have a set of dictionaries.

Set of Dictionary

2005-06-16 Thread Vibha Tripathi
Hi Folks, I know sets have been implemented using dictionary but I absolutely need to have a set of dictionaries...any ideas how to do that? Peace. Vibha "Things are only impossible until they are not." __ Discover Yahoo! Find restaurants, mov