/[hyperestraier_wrappers]/trunk/examples/iter.py
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/examples/iter.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Sat Sep 3 18:02:31 2005 UTC (16 years, 2 months ago) by dpavlin
Original Path: 0.0.12/examples/iter.py
File MIME type: text/x-python
File size: 240 byte(s)
import of hyper_estraier_wrappers-0.0.12.tar.gz

1 """
2 An example code of iterator.
3 """
4 import HyperEstraier
5
6 db = HyperEstraier.Database()
7 db.open('/tmp/casket', HyperEstraier.Database.DBREADER)
8 print 'iter:',db.iter_init()
9 m = db.iter_next()
10 print m
11 while m:
12 print m
13 m = db.iter_next()
14

  ViewVC Help
Powered by ViewVC 1.1.26