API design question for dbf.py

E

Ethan Furman

I'm looking for some free advice. ;)

My dbf module has three basic containers, all of which support list-like
access: Table, List, and Index, each of which is filled with _DbfRecords.

The fun part is that a _DbfRecord can compare equal to another
_DbfRecord, a _DbfRecordTemplate, a tuple with the same values in the
same locations, or a dict with the same keys/fields and values.

The really fun part is __contains__: should the __contains__ method
return True when a _DbfRecordTemplate, tuple, or dict is looked up in
the Table, List, or Index and there is a matching record?

~Ethan~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top