News for hackers. Stuff that matters.
Re:Python metaclasses by grdvnl on Sunday August 09, 2015 @01:03AM (#10029544)
I do not think it would work with sub-classing. With the approach we have it is just easier to add the 'new' method name to test into the list argument of the meta class. The meta class would generate a `test` method with the passed in function name.

With the subclass approach you are required to implement a new class and essentially write repetitive code, or reuse existing functions. Reusing existing test methods does not provide good error reporting as I had stated earlier. It is late in the day. Shortly, I will try to post a gist example of what I am talking about, if you are still interested.

Re:Python metaclasses by jsmeaton on Tuesday August 11, 2015 @03:19AM (#10039516)
Bit late to respond, but yes I would be interested, thanks!