Mercurial > pylearn
comparison lookup_list.py @ 435:eac0a7d44ff0
merge
author | Olivier Breuleux <breuleuo@iro.umontreal.ca> |
---|---|
date | Mon, 04 Aug 2008 16:29:30 -0400 |
parents | 52b4908d8971 |
children |
comparison
equal
deleted
inserted
replaced
434:0f366ecb11ee | 435:eac0a7d44ff0 |
---|---|
27 @todo: Convert this documentation into doctest | 27 @todo: Convert this documentation into doctest |
28 format, and actually perform doctest'ing: | 28 format, and actually perform doctest'ing: |
29 U{http://epydoc.sourceforge.net/manual-epytext.html#doctest-blocks} | 29 U{http://epydoc.sourceforge.net/manual-epytext.html#doctest-blocks} |
30 """ | 30 """ |
31 def __init__(self,names=[],values=[]): | 31 def __init__(self,names=[],values=[]): |
32 #print 'values=', values | |
33 #print 'length=', len(values) | |
34 #print 'names=', names | |
35 #print 'length=',len(names) | |
32 assert len(values)==len(names) | 36 assert len(values)==len(names) |
33 self.__dict__['_values']=values | 37 self.__dict__['_values']=values |
34 self.__dict__['_name2index']={} | 38 self.__dict__['_name2index']={} |
35 self.__dict__['_names']=names | 39 self.__dict__['_names']=names |
36 for i in xrange(len(values)): | 40 for i in xrange(len(values)): |