Another newbie question
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Thu Dec 8 16:51:01 EST 2005
More information about the Python-list mailing list
Thu Dec 8 16:51:01 EST 2005
- Previous message (by thread): Another newbie question
- Next message (by thread): Another newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 07 Dec 2005 23:58:02 -0500, Mike Meyer wrote: > "solaris_1234" <solaris_1234 at yahoo.com> 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.
- Previous message (by thread): Another newbie question
- Next message (by thread): Another newbie question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list