Message157869
| Author |
r.david.murray |
| Recipients |
michael.foord, pitrou, r.david.murray, stutzbach |
| Date |
2012年04月09日.17:50:37 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1333993838.71.0.189516591877.issue14534@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Antoine: I don't have any problem with that personally, but Michael did, and he's the maintainer :)
But there is a small advantage: it means you don't have to keep repeating the 'unittest.TestCase' boilerplate in each subclass declaration, you only have to decorate the base class once.
Daniel: Oops, you are right. Michael seemed to have some idea on how to implement the decorator. The class attribute was my contribution, and obviously that isn't going to work. I wanted something more transparent than a magic decorator, but it looks like magic will be required.
Which, IMO, is a point in Antoine's favor. Let's see what Michael has to say. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月09日 17:50:38 | r.david.murray | set | recipients:
+ r.david.murray, pitrou, stutzbach, michael.foord |
| 2012年04月09日 17:50:38 | r.david.murray | set | messageid: <1333993838.71.0.189516591877.issue14534@psf.upfronthosting.co.za> |
| 2012年04月09日 17:50:38 | r.david.murray | link | issue14534 messages |
| 2012年04月09日 17:50:37 | r.david.murray | create |
|