OOP: How to implement listing al 'Employees'.

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat Dec 29 06:10:41 EST 2007


On Sat, 29 Dec 2007 01:53:38 -0800, Petar wrote:

> The post of Dennis made me realize of another solution though. To
> create another class called Articles which return multiple articles.
> The only problem I forsee with this that's it's gonna be a very empty
> class.

Then maybe it should not be a class.  Maybe a function returning
`Article`\s would be enough.  This is not Java, not everything has to be
stuffed into classes.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list