[Tutor] class initialization with a lot of parameters

Alan Gauld alan.gauld at btinternet.com
Tue Nov 10 22:12:46 CET 2009


"C.T. Matsumoto" <c.t.matsumoto at gmail.com> wrote 

> This list provides defines 2 tables that need to be paired and then
> compared. 

So two instances of a TestTable object maybe?

> reference_table_name
> reference_dburi
> reference_rows
> test_table_name
> test_dburi
> test_rows
> keys

Looks like two TestTable objects and a set of keys?
And maybe TestTable has a comparison method that compares 
one table to another? Or maybe can index a row based on a key?
Maybe the Rows are objects too and they can compare themselves?

Lots of possibilities depending on your problem.


Just a thought.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list