Re: newbe question about removing items from one file to another file

2006-09-05 Thread Anthra Norell
hon To: Sent: Monday, September 04, 2006 10:52 PM Subject: Re: newbe question about removing items from one file to another file > I am have to be able to distribute se with the project in order to use > it > I started with import se but I did not use the setup command > when I commen

Re: newbe question about removing items from one file to another file

2006-09-04 Thread [EMAIL PROTECTED]
: > - Original Message - > From: <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Monday, September 04, 2006 4:58 AM > Subject: Re: newbe question about removing items from one file to another file > > > > > > Anthra Norell wrote: &

Re: newbe question about removing items from one file to another file

2006-09-04 Thread Anthra Norell
- Original Message - From: <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Monday, September 04, 2006 4:58 AM Subject: Re: newbe question about removing items from one file to another file > > Anthra Norell wrote: > > Dexter, > > > > Here

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
gment in instrument_segments.split ('\n\n'): > if segment: >instr_line = Instrument_Number (segment) >instrument_number = instr_line.split ()[1] >instruments [instrument_number] = segment > > ----------

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
planatory. Explain the > > > points that might not be obvious to a reader who knows > nothing > > > about your mission. > > > > > > Frederic > > > > > > - Original Message - > > > From: <[EMAIL PROTECTED]> > > > Newsgrou

Re: newbe question about removing items from one file to another file

2006-09-03 Thread [EMAIL PROTECTED]
> > > > > > > > > - > > > > > > If I understand correctly you want to write the instruments block to a > > > file (from to )? Right? Or > > > each block to its own file in case there are several?. You w

Re: newbe question about removing items from one file to another file

2006-08-30 Thread [EMAIL PROTECTED]
gment in instrument_segments.split ('\n\n'): > if segment: >instr_line = Instrument_Number (segment) >instrument_number = instr_line.split ()[1] >instruments [instrument_number] = segment > > ----------

Re: newbe question about removing items from one file to another file

2006-08-30 Thread Anthra Norell
ou, take them out with an additional definition when you make your Instrument_Block_Filter: (13)= or "\r=") Regards Frederic - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Wednesday, August 30, 2006 1:51 AM Subject: Re: ne

Re: newbe question about removing items from one file to another file

2006-08-29 Thread Simon Forman
to its own file in case there are several?. You want your code > > to generate the file names? Can you confirm this or > > explain it differently? > > > > Regards > > > > Frederic > > > > > > - Original Message - > > From:

Re: newbe question about removing items from one file to another file

2006-08-29 Thread [EMAIL PROTECTED]
planatory. Explain the > > > points that might not be obvious to a reader who knows > nothing > > > about your mission. > > > > > > Frederic > > > > > > - Original Message - > > > From: <[EMAIL PROTECTED]> > > > Newsgrou

Re: newbe question about removing items from one file to another file

2006-08-29 Thread Anthra Norell
Message - From: <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Monday, August 28, 2006 10:48 AM Subject: Re: newbe question about removing items from one file to another file > > Anthra Norell wrote: > > Eric, > >Having played around with problems of this ki

Re: newbe question about removing items from one file to another file

2006-08-28 Thread Gabriel Genellina
At Sunday 27/8/2006 18:35, [EMAIL PROTECTED] wrote: (This code don't even compile...!) def simplecsdtoorc(filename): file = open(filename,"r") file is not a good name - hides the builtin type of the same name. Same for dict, list... alllines = file.read_until("") read_until???

Re: newbe question about removing items from one file to another file

2006-08-28 Thread [EMAIL PROTECTED]
ts > that might not be obvious to a reader who knows nothing > about your mission. > > Frederic > > - Original Message - > From: <[EMAIL PROTECTED]> > Newsgroups: comp.lang.python > To: > Sent: Sunday, August 27, 2006 11:35 PM > Subject: newbe question

Re: newbe question about removing items from one file to another file

2006-08-27 Thread Anthra Norell
r mission. Frederic - Original Message - From: <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Sunday, August 27, 2006 11:35 PM Subject: newbe question about removing items from one file to another file > def simplecsdtoorc(filename): > file = o

Re: newbe question about removing items from one file to another file

2006-08-27 Thread Simon Forman
[EMAIL PROTECTED] wrote: > def simplecsdtoorc(filename): > file = open(filename,"r") > alllines = file.read_until("") > pattern1 = re.compile(" orcfilename = filename[-3:] + "orc" > for line in alllines: > if not pattern1 > print >>orcfilename, line > > I am

Re: newbe question about removing items from one file to another file

2006-08-27 Thread [EMAIL PROTECTED]
PetDragon wrote: > Sounds like you need to use html parser, check it out in the > documentation > > > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > def simplecsdtoorc(filename): > >file = open(filename,"r") > >alllines = file.read_until("") > >pattern1 = re.co

Re: newbe question about removing items from one file to another file

2006-08-27 Thread PetDragon
Sounds like you need to use html parser, check it out in the documentation <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > def simplecsdtoorc(filename): >file = open(filename,"r") >alllines = file.read_until("") >pattern1 = re.compile("orcfilename = filename[-

newbe question about removing items from one file to another file

2006-08-27 Thread [EMAIL PROTECTED]
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("") pattern1 = re.compile(">orcfilename, line I am pretty sure my code isn't close to what I want. I need to be able to skip html like commands from to and to key on another word in adition to to end