Steven D'Aprano a écrit : (snip)
When all you have is a hammer, everything looks like a nail... Why do you have to read item.tags directly? Just write a function and call it instead of direct attribute access.
A sensible advice, but only relevant if this class instances are only used by code the OP do control. Which may or not be the case.
-- http://mail.python.org/mailman/listinfo/python-list