On Wed, 07 Dec 2005 23:58:02 -0500, Mike Meyer wrote:

> "solaris_1234" <[EMAIL PROTECTED]> writes:
> 
>> 1)  The stmt "board.Blist[10].DrawQueen(board.Blist[10].b1)" seems
>> awkward. Is there another way (cleaner, more intuitive) to get the
>> same thing done?
> 
> Yes. Reaching through objects to do things is usually a bad idea. 

I don't necessarily disagree, but I don't understand why you say this. Why
it is bad?

> Some languages don't allow you to do that at all; 

Fortunately we aren't using "some languages", we're using Python, and so
we aren't forced to fill our classes with helper functions when we can
simply call the object methods directly.


-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to