Welcome, guest | Sign In | My Account | Store | Cart
# Guyon Morée
# http://gumuz.looze.net/

def split_seq(seq,size):
    """ Split up seq in pieces of size """
    return [seq[i:i+size] for i in range(0, len(seq), size)]

History

  • revision 4 (16 years ago)
  • previous revisions are not available