slicing functionality for strings / Python suitability forbioinformatics

jbperez808 at yahoo.com jbperez808 at yahoo.com
Tue Sep 20 04:40:12 CEST 2005


Having to do an array.array('c',...):

  >>> x=array.array('c','ATCTGACGTC')
  >>> x[1:9:2]=array.array('c','AAAA')
  >>> x.tostring()
  'AACAGACATC'

is a bit klunkier than one would want, but I guess
the efficient performance is the silver lining here.




More information about the Python-list mailing list