more about the blasted pen and paper...

David Broadwell (remove spam.) "dbroadwell" at spam.mindspring.com
Mon May 29 06:45:29 EDT 2000


> >   I draw on a paper with a blue color
> >   paper.draw(color='blue')
> pen.paper=paper
> pen.draw(color='blue')
> "Pen, you're going to be drawing on that piece of paper.  Draw in
> blue."

Very similar to the first one, but with a pen.

paper.draw(pen.blue)

two objects, one atribute and one function.

(new to the list, had to say something, this thread was too good.)



More information about the Python-list mailing list