metaclass question

Chris Withers chris at simplistix.co.uk
Mon Sep 24 13:43:33 EDT 2012


Hi All,

Is there a metaclass-y way I could cause the following:

class TheParser(Parser):
     def handle_ARecord(self):
         pass
     def handle_ARecord(self):
         pass

...to raise an exception as a result of the 'handle_ARecord' name being 
reused?

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk



More information about the Python-list mailing list