Re: Python Help!!!

2007-06-13 Thread Christof Winter
Elfine Peterson Tjio wrote: > I'm trying to make a program that reads Fasta file and print it out. I used > the SeqIO module and the results is: > > 'ATGGTCATSingleAlphabet()' > > For this purpose, should I use SeqIO or Fasta? > > for example: > > from Bio import SeqIO > > or > > from Bio

Re: Method much slower than function?

2007-06-14 Thread Christof Winter
Gabriel Genellina wrote: [...] > py> import timeit > py> > py> def f1(): > ... a="" > ... for i in xrange(10): > ... a+=str(i)*20 > ... > py> def f2(): > ... a=[] > ... for i in xrange(10): > ... a.append(str(i)*20) > ... a="".join(a) > ... > py> print timeit.Timer("f2

Re: Want to learn Python

2007-06-15 Thread Christof Winter
Amol wrote: > Hi, I want to learn Python in less than a month which resources should > I use. I prefer to read books . Please give me a list of *recognized* > resources. Thank You all This is an excellent resource: http://rgruet.free.fr/PQR24/PQR2.4.html Although it's quite different from a book,

Re: How to optimise this code?

2007-08-21 Thread Christof Winter
David N Montgomery wrote: > class testCase: > def __init__(self, tc): > if tc == 1:self.testCase1() > if tc == 2:self.testCase2() > if tc == 3:self.testCase3() > if tc == 4:self.testCase4() > if tc == 5:self.testCase5() > if tc == 6:self.testCase6

Re: 2 python questions!

2007-09-05 Thread Christof Winter
[EMAIL PROTECTED] wrote: [...] > Now the second question has to do with images retrieval and > manipulation. Which libraries do you propose to work with to > retrieve and resize images from the web? urllib.urlretrieve() and Python Imaging Library (PIL) -- http://mail.python.org/mailman/listin

Re: list (range) syntax

2007-10-26 Thread Christof Winter
Ryan Ginstrom wrote: >> On Behalf Of Steven D'Aprano >> Because in common English, counting starts at 1 and ranges >> normally include both end points (that is, it is a "closed" >> interval). If you say "I'll be away from the 4th to the 7th" >> and then turn up on the 7th, nearly everyone will w

SOAPpy WSDL problem: namespace of schema and import match error

2008-07-28 Thread Christof Winter
I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl"; intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) The resulting error message is posted below. If I understand it right, XMLSchema.py complains about the importe

Re: SOAPpy WSDL problem: namespace of schema and import match error

2008-07-28 Thread Christof Winter
Christof Winter wrote, On 28.07.2008 12:32: I am trying to use a webservice with SOAPpy: import SOAPpy intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl"; intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl) [...] My question: - Is there a problem with the