Re: Parse bug text file

2014-07-28 Thread CM
Thank you, Chris, Terry, and jmf, for these pointers. Very helpful. -CM -- https://mail.python.org/mailman/listinfo/python-list

Parse bug text file

2014-07-27 Thread CM
I have a big text file of bugs that I want to use Python to parse such that the bugs can be neatly filed into a database. I can bumble toward a solution with looping but feel this is a classic example of reinventing the wheel, and yet I'm finding it hard to Google for. Basically the file is

Re: Parse bug text file

2014-07-27 Thread Chris Angelico
On Mon, Jul 28, 2014 at 4:08 AM, CM cmpyt...@gmail.com wrote: I can go through it with opening the text file and reading in the lines, and if the first character is a - then count that as the start of a bug block, but I am not sure how to find the last line of a bug block...it would be the

Re: Parse bug text file

2014-07-27 Thread Terry Reedy
On 7/27/2014 2:08 PM, CM wrote: I have a big text file of bugs that I want to use Python to parse such that the bugs can be neatly filed into a database. I can bumble toward a solution with looping but feel this is a classic example of reinventing the wheel, and yet I'm finding it hard to Google