"Wayne Watson" wrote
My e-mail address is valid. Any ideas? I've compacted related Trash
folders, etc
It should be news.gmane.org... Or is that just a typo?
Alan G.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinf
Title: Signature.html
Yes, a typo.
Alan Gauld wrote:
"Wayne Watson" wrote
My e-mail address is valid. Any ideas? I've
compacted related Trash folders, etc
It should be news.gmane.org... Or is that just a typo?
Alan G.
_
Friends,
My files are like below
file1 file2
RemarkRemark
---
---
I have huge number of such files. I want to concatenate all files in one
huge file. I could do it with a script. But i want to omit the first l
On Thu, Mar 26, 2009 at 10:42 AM, Bala subramanian <
bala.biophys...@gmail.com> wrote:
>print>>out, handle <-- Here i want to write only from second line. I
> dnt want to loop over handle here and putting all lines except the first one
> in
> anothe
On Thu, Mar 26, 2009 at 10:56 AM, Marc Tompkins wrote:
> Without changing anything else, you could do it with a slice:
>
You should probably also close your input files when you're done with them.
--
www.fsrtechnologies.com
___
Tutor maillist - Tuto
"Bala subramanian" wrote
for files in flist:
handle=open(flist).readlines()
print>>out, handle
print>>out, handle[1:]
Should do it? You might need to handle line endings though...
Alan G.
___
Tutor maillist - Tutor@python.org
http:/
"Wayne Watson" wrote
My e-mail address is valid. Any ideas? I've compacted related Trash
folders, etc
It should be news.gmane.org... Or is that just a typo?
In that case you probably need to tell us more.
Can you read the group OK in TBird?
What other settings are you using?
I can'
Use '\n'.join(handle[1:])
It will create a string from your list with newline as separator.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
From: Bala subramanian
To: Alan Gauld
Sent: Thursday, 26 March, 2009 6:11:59 PM
Subject:
Is this a news group or a list group. If it is a news group, you can't
use your regular email. I use T-Bird and to subscribe to 'news groups'
you must have access to a news group server. If you look under the news
properties under servers, you must provide a news group server (NNTP).
Your email
I'm wanting to put together a simple helper application for a game (a
better version of Dwarf Foreman for the highly addictive Dwarf
Fortress). It seems like Python would be a good choice for such a
relatively simple project, and I've been wanting to learn Python.
But I'm not sure what version of
On Thu, Mar 26, 2009 at 2:58 PM, ALAN GAULD wrote:
> Use '\n'.join(handle[1:])
> It will create a string from your list with newline as separator.
The lines from readlines() include the newlines already.
> When i use the following
>
> print>>out, handle[1:]
>
> In the out file, it saves the line
"NBarnes" wrote
Fortress). It seems like Python would be a good choice for such a
relatively simple project, and I've been wanting to learn Python.
seems reasonable), but I understand that we've since moved on to
Python 2.6? And that Python 3.0 is out? Is 3.0 mature enough to
support this
"Kent Johnson" wrote
On Thu, Mar 26, 2009 at 2:58 PM, ALAN GAULD
wrote:
Use '\n'.join(handle[1:])
It will create a string from your list with newline as separator.
The lines from readlines() include the newlines already.
Ah, OK, I couldn't remember if readlines stripped them off or not.
13 matches
Mail list logo