problem with dictionaries within lists

Tim Roberts timr at probo.com
Fri Sep 27 06:53:57 CEST 2002


Grant Hallam <gupsmail at ihatespam.shaw.ca> wrote:
>
>#Compiled regular expressions
>#Used in web parser
>rcN = re.compile('Name')
>rcL = re.compile('Location')
>rcT = re.compile('Transit')
>rcTN = re.compile('Technical_Knowledge')
>rcLS = re.compile('Like_Site')
>rcRT = re.compile('Resolve_Tech_Issues')
>...many more deleted...

On an unrelated note, I hope you won't mind if I comment on this part of
your code.

You would get better performance and less resource use out of this if you
replaced these regular expression matches with simple
list[0].find('XxxXxx') calls.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list