/[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 2 - (show annotations)
Sat Sep 3 18:04:41 2005 UTC (16 years, 3 months ago) by dpavlin
File MIME type: text/x-python
File size: 240 byte(s)
make working copy
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