Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/diff/e5c8deea6f83/allpy/util.py
Дата изменения: Unknown
Дата индексирования: Sat Mar 1 14:27:36 2014
Кодировка:
allpy: allpy/util.py diff

allpy

diff 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
line diff
     1.1 --- a/allpy/util.py	Thu Dec 16 19:08:16 2010 +0300
     1.2 +++ b/allpy/util.py	Thu Dec 16 19:15:34 2010 +0300
     1.3 @@ -2,6 +2,7 @@
     1.4  """
     1.5  
     1.6  def unzip(seq):
     1.7 +    """The oppozite of zip() builtin."""
     1.8      a, b = [], []
     1.9      for x, y in seq:
    1.10          a.append(x)
    1.11 @@ -9,9 +10,11 @@
    1.12      return a, b
    1.13  
    1.14  class UserDict(dict):
    1.15 +    """Clone of dict that user may add attributes to."""
    1.16      pass
    1.17  
    1.18  class UserList(list):
    1.19 +    """Clone of list that user may add attributes to."""
    1.20      pass
    1.21  
    1.22  # vim: set et ts=4 sts=4 sw=4: