Problem with re.findall?????!!!!!!!!!!

J Donald jeddak at earthlink.net
Mon Feb 21 09:04:48 EST 2000


I'm getting an AttributeError when I try to use re.findall or {my
compiled re object}.findall.
Is it me, or is there a problem perhaps with my libraries?

#begin code

import sys,re,urllib,httplib

if __name__ == '__main__':
    global needleFinder
    global haystack
    global needles
    haystack="As tax season approaches, many snakes will begin to gather
the information and forms they need to file their 1932 tax returns."
    needleFinder = re.compile("A")
    needles = needleFinder.findall(haystack)
    print needles

#end code

Any vague divinations, dark hints, or subtle proddings greatly
appreciated.

Feeling-immensely-stupid'ly yours,

Jonathan




More information about the Python-list mailing list