Re: [Tutor] Help

2010-05-14 Thread Abhishek Mishra
Not sure if I understood the problem exactly, but you could linearize the text by using something like this -- >>> foo = '''ACTGTGTTC ... ACGTCGACC ... AVGTT ... ACGTTaGTC''' >>> foo 'ACTGTGTTC\nACGTCGACC\nAVGTT\nACGTTaGTC' >>> linear1 = ''.join(foo.split('\n')) >>> linear1 'ACTGTGTTCACGT

Re: [Tutor] datetime.strptime not matching timezone in format

2010-05-04 Thread Abhishek Mishra
On Tue, May 4, 2010 at 4:22 PM, vishwajeet singh wrote: > > On Tue, May 4, 2010 at 4:17 PM, Abhishek Mishra wrote: > >> %Z stands for time zone name in letters Eg. IST or EDT or GMT, so it would >> fail to parse +05:30 >> >>Ahh...ok thanks for pointing that ou

Re: [Tutor] datetime.strptime not matching timezone in format

2010-05-04 Thread Abhishek Mishra
%Z stands for time zone name in letters Eg. IST or EDT or GMT, so it would fail to parse +05:30 However I do not have a solution to your problem but a footnote as hint - http://docs.python.org/library/time.html#id1 -- Abhishek On Tue, May 4, 2010 at 3:17 PM, vishwajeet singh wrote: > Dear All,