Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/annotate/e5c8deea6f83/allpy/util.py
Дата изменения: Unknown
Дата индексирования: Sun Mar 2 07:05:05 2014
Кодировка:
allpy: allpy/util.py annotate

allpy

annotate allpy/util.py @ 304:e5c8deea6f83

Added docstrings to allpy.util
author Daniil Alexeyevsky <me.dendik@gmail.com>
date Thu, 16 Dec 2010 19:15:34 +0300
parents 12a2dfa5f2a8
children 8c1e37dbb979
rev   line source
me@287 1 """Miscellanous utilities.
me@287 2 """
me@287 3
me@287 4 def unzip(seq):
me@304 5 """The oppozite of zip() builtin."""
me@287 6 a, b = [], []
me@287 7 for x, y in seq:
me@287 8 a.append(x)
me@287 9 b.append(y)
me@287 10 return a, b
me@287 11
me@293 12 class UserDict(dict):
me@304 13 """Clone of dict that user may add attributes to."""
me@293 14 pass
me@293 15
me@293 16 class UserList(list):
me@304 17 """Clone of list that user may add attributes to."""
me@293 18 pass
me@293 19
me@287 20 # vim: set et ts=4 sts=4 sw=4: