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
:
> - 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:
&
- 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
gment in instrument_segments.split ('\n\n'):
> if segment:
>instr_line = Instrument_Number (segment)
>instrument_number = instr_line.split ()[1]
>instruments [instrument_number] = segment
>
> ----------
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
> > >
> > >
> > > -
> > >
> > > 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
gment in instrument_segments.split ('\n\n'):
> if segment:
>instr_line = Instrument_Number (segment)
>instrument_number = instr_line.split ()[1]
>instruments [instrument_number] = segment
>
> ----------
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
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:
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
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
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???
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
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
[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
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
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[-
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
18 matches
Mail list logo