Re: slicing functionality for strings / Python suitability for bioinformatics

2005-09-19 Thread Sebastian Bassi
On 19 Sep 2005 12:25:16 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> rs='AUGCUAGACGUGGAGUAG' > >>> rs[12:15]='GAG' > Traceback (most recent call last): > File "", line 1, in ? > rs[12:15]='GAG' > TypeError: object doesn't support slice assignment You should try Biopython (www.bi

Re: slicing functionality for strings / Python suitability for bioinformatics

2005-09-19 Thread jbperez808
right, i forgot about that... -- http://mail.python.org/mailman/listinfo/python-list

Re: slicing functionality for strings / Python suitability for bioinformatics

2005-09-19 Thread Reinhold Birkenfeld
[EMAIL PROTECTED] wrote: rs='AUGCUAGACGUGGAGUAG' rs[12:15]='GAG' > Traceback (most recent call last): > File "", line 1, in ? > rs[12:15]='GAG' > TypeError: object doesn't support slice assignment > > You can't assign to a section of a sliced string in > Python 2.3 and there doesn'

slicing functionality for strings / Python suitability for bioinformatics

2005-09-19 Thread jbperez808
>>> rs='AUGCUAGACGUGGAGUAG' >>> rs[12:15]='GAG' Traceback (most recent call last): File "", line 1, in ? rs[12:15]='GAG' TypeError: object doesn't support slice assignment You can't assign to a section of a sliced string in Python 2.3 and there doesn't seem to be mention of this as a Python