Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Mark Lawrence
On 10/02/2012 17:08, Peter Otten wrote: Spyros Charonis wrote: Dear python community, I have a file where I store sequences that each have a header. The structure of the file is as such: sp|(some code) =>1st header AGGCGG MNKPLOI . . sp|(some code) => 2nd header AA

Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Peter Otten
Spyros Charonis wrote: > Dear python community, > > I have a file where I store sequences that each have a header. The > structure of the file is as such: > >>sp|(some code) =>1st header > AGGCGG > MNKPLOI > . > . > >>sp|(some code) => 2nd header > AA > ... > . > >

Re: [Tutor] Concatenating multiple lines into one

2012-02-10 Thread Hugo Arts
On Fri, Feb 10, 2012 at 5:38 PM, Spyros Charonis wrote: > Dear python community, > > I have a file where I store sequences that each have a header. The structure > of the file is as such: > >>sp|(some code) =>1st header > AGGCGG > MNKPLOI > . > . > >>sp|(some code) => 2nd header >

[Tutor] Concatenating multiple lines into one

2012-02-10 Thread Spyros Charonis
Dear python community, I have a file where I store sequences that each have a header. The structure of the file is as such: >sp|(some code) =>1st header AGGCGG MNKPLOI . . >sp|(some code) => 2nd header AA ... . .. I am looking to implement a logical structure t

Re: [Tutor] Dictionaries

2012-02-10 Thread Mark Lawrence
On 10/02/2012 14:13, myles broomes wrote: Ive been given a challenge in the book im learning Python from and its basically create a program with a dictionary of father - son pairs and allow the user to add, replace and delete pairs. Ive done that without any problems but ive been giving anoth

Re: [Tutor] Dictionaries

2012-02-10 Thread Walter Prins
Hi Myles, On 10 February 2012 14:13, myles broomes wrote: > Ive been given a challenge in the book im learning Python from and its > basically create a program with a dictionary of father - son pairs and allow > the user to add, replace and delete pairs. Ive done that without any > problems but i

Re: [Tutor] Question about an example in Python doc

2012-02-10 Thread Hugo Arts
On Fri, Feb 10, 2012 at 3:12 PM, daedae11 wrote: > The example is the third example in (Python2.7's doc)->(Python Library > Reference)->17.2.2. > The code of the example is: > > import socket > > # the public network interface > HOST = socket.gethostbyname(socket.gethostname()) > > # create a raw 

Re: [Tutor] Dictionaries

2012-02-10 Thread Dave Angel
On 02/10/2012 09:13 AM, myles broomes wrote: Ive been given a challenge in the book im learning Python from and its basically create a program with a dictionary of father - son pairs and allow the user to add, replace and delete pairs. Ive done that without any problems but ive been giving ano

Re: [Tutor] Question about an example in Python doc

2012-02-10 Thread Walter Prins
Hi, On 10 February 2012 14:12, daedae11 wrote: > Traceback (most recent call last): >   File "E:\c language\Eclipse\example\src\sniffer.py", line 12, in  > s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP) >   File "D:\Python27\lib\socket.py", line 187, in __init__ > _

Re: [Tutor] Dictionaries

2012-02-10 Thread Sarma Tangirala
On 10 Feb 2012 19:45, "myles broomes" wrote: > > Ive been given a challenge in the book im learning Python from and its basically create a program with a dictionary of father - son pairs and allow the user to add, replace and delete pairs. Ive done that without any problems but ive been giving ano

[Tutor] Dictionaries

2012-02-10 Thread myles broomes
Ive been given a challenge in the book im learning Python from and its basically create a program with a dictionary of father - son pairs and allow the user to add, replace and delete pairs. Ive done that without any problems but ive been giving another challenge where I have to improve the pre

[Tutor] Question about an example in Python doc

2012-02-10 Thread daedae11
The example is the third example in (Python2.7's doc)->(Python Library Reference)->17.2.2. The code of the example is: import socket # the public network interface HOST = socket.gethostbyname(socket.gethostname()) # create a raw socket and bind it to the public interface s = socket.socket(socke

Re: [Tutor] Where can I download the document for twisted?

2012-02-10 Thread Christian Witts
On 2012/02/10 02:48 PM, daedae11 wrote: Where can I download the document for twisted? I could't find it on twistedmatrix.com . daedae11 ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Where can I download the document for twisted?

2012-02-10 Thread Walter Prins
On 10 February 2012 12:48, daedae11 wrote: > Where can I download the document for twisted? I could't find it on > twistedmatrix.com . Umm, click on the "Doc" link, top right of the page you listed? (The page includes a link to a PDF version of the developer guide...) Walter ___

[Tutor] Where can I download the document for twisted?

2012-02-10 Thread daedae11
Where can I download the document for twisted? I could't find it on twistedmatrix.com . daedae11___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor