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

allpy

annotate allpy/util.py @ 293:12a2dfa5f2a8

Added classes UserDict and UserList in allpy.util
author Daniil Alexeyevsky <me.dendik@gmail.com>
date Thu, 16 Dec 2010 03:10:06 +0300
parents f8bd7c469fcf
children e5c8deea6f83
rev   line source
me@287 1 """Miscellanous utilities.
me@287 2 """
me@287 3
me@287 4 def unzip(seq):
me@287 5 a, b = [], []
me@287 6 for x, y in seq:
me@287 7 a.append(x)
me@287 8 b.append(y)
me@287 9 return a, b
me@287 10
me@293 11 class UserDict(dict):
me@293 12 pass
me@293 13
me@293 14 class UserList(list):
me@293 15 pass
me@293 16
me@287 17 # vim: set et ts=4 sts=4 sw=4: