Michael Foord <mich...@voidspace.org.uk> added the comment:

Because you then have classes that inherit from object calling methods that 
clearly don't exist (until you subclass them *and* TestCase). It looks weird 
and also means the classes can't be tested in isolation.

With a class decorator the code would *look* straightforward, and the hidden 
attribute is just an implementation detail.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14408>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to