>    import re
>    splitter_re = re.compile(chr(174) + '|' + chr(175))
>    for line in file(FILENAME):
>      parts = splitter_re.split(line)
>      do_something(parts)
>
> and then go find a large blunt object with which to bludgeon the
> creator of the file... :)

p>> creator= CreatorOfTheFile()
p>> creator.bludgeon
<bound method CreatorOfTheFile.bludgeon of <__main__.CreatorOfTheFile
object at [snip]>>
p>>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to