Re: Method needed for skipping lines

2007-11-01 Thread Gustaf
Bruno Desthuilliers wrote: > Here's a straightforward solution: Thank you. I learned several things from that. :-) Gustaf -- http://mail.python.org/mailman/listinfo/python-list

Re: Method needed for skipping lines

2007-11-01 Thread Gustaf
Yu-Xi Lim wrote: > David Mertz's Text Processing in Python might give you some more > efficient (and interesting) ways of approaching the problem. > > http://gnosis.cx/TPiP/ Thank you for the link. Looks like a great resource. Gustaf -- http://mail.python.org/mailman/listinfo/python-list

Re: Method needed for skipping lines

2007-10-31 Thread Anand
On Nov 1, 5:04 am, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Oct 31, 5:02 pm, Gustaf <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Just for fun, I'm working on a script to count the number of lines in > > source files. Some lines are auto-generated (by the IDE) and shouldn't be > > counted. Th

Re: Method needed for skipping lines

2007-10-31 Thread Paul Hankin
On Oct 31, 5:02 pm, Gustaf <[EMAIL PROTECTED]> wrote: > Hi all, > > Just for fun, I'm working on a script to count the number of lines in source > files. Some lines are auto-generated (by the IDE) and shouldn't be counted. > The auto-generated part of files start with "Begin VB.Form" and end with

Re: Method needed for skipping lines

2007-10-31 Thread Bruno Desthuilliers
Gustaf a écrit : > Hi all, > > Just for fun, I'm working on a script to count the number of lines in > source files. Some lines are auto-generated (by the IDE) and shouldn't > be counted. The auto-generated part of files start with "Begin VB.Form" > and end with "End" (first thing on the line).

Re: Method needed for skipping lines

2007-10-31 Thread Yu-Xi Lim
Gustaf wrote: > Hi all, > > Just for fun, I'm working on a script to count the number of lines in > source files. Some lines are auto-generated (by the IDE) and shouldn't > be counted. The auto-generated part of files start with "Begin VB.Form" > and end with "End" (first thing on the line). Th

Re: Method needed for skipping lines

2007-10-31 Thread Marc 'BlackJack' Rintsch
On Wed, 31 Oct 2007 18:02:26 +0100, Gustaf wrote: > Just for fun, I'm working on a script to count the number of lines in > source files. Some lines are auto-generated (by the IDE) and shouldn't be > counted. The auto-generated part of files start with "Begin VB.Form" and > end with "End" (first t

Method needed for skipping lines

2007-10-31 Thread Gustaf
Hi all, Just for fun, I'm working on a script to count the number of lines in source files. Some lines are auto-generated (by the IDE) and shouldn't be counted. The auto-generated part of files start with "Begin VB.Form" and end with "End" (first thing on the line). The "End" keyword may appear