Dealing with the __str__ method in classes with lots of attributes

Mark Lawrence breamoreboy at yahoo.co.uk
Fri May 11 10:40:46 EDT 2012


On 11/05/2012 15:32, Andreas Tawn wrote:

> It's also helpful to not have to display every attribute, of which there may be dozens.

Do I detect a code smell here?

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list