On 2011-08-26, D'Arcy J.M. Cain <da...@druid.net> wrote:
> On 26 Aug 2011 18:39:07 GMT
> greymaus <greyma...@mail.com> wrote:
>> 
>> Is there an equivelent for the AWK RS in Python?
>> 
>> 
>> as in RS='\n\n'
>> will seperate a file at two blank line intervals
>
> open("file.txt").read().split("\n\n")
>


Ta!.. bit awkard. :))))))


-- 
maus
 .
  .
...   NO CARRIER
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to