On Dec 18, 2008, at 9:49 AM, johnf wrote:
> I can scan and set filters for two.
for loops work on data sets. List comprehensions work well for
filtering.
Let's say you have a dataset with a 'lastname' column, and you want
to scan all rows with 'jones' in the lastname:
for rec in [r for r in mydataset if "jones" in r["lastname"].lower()]:
# do something with this row...
> I fact that is what I did. I first got a
> connection (that is thing I was hoping to avoid). Got the data into a
> DataSet. Made a cursor and started using the cursor.
You don't need cursors to do basic Python stuff.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]