Classes in Python
Peter Otten
__peter__ at web.de
Tue Aug 5 04:59:56 EDT 2003
Judging from the Getting started section in
http://www.equi4.com/metakit/python.html,
vw[r.index] seems redundent, so
<not tested>
import Mk4py
db = Mk4py.storage("c:\\datafile.mk", 1)
vw = db.view("people")
for r in vw:
if r.Nachname.startswith("Ge"):
print r.Nachname
</not tested>
would be the code to go with.
Less code == fewer occasions for errors,
and it might even run faster :-)
Peter
More information about the Python-list
mailing list