On 27-6-2013 15:48, Dave Angel wrote: >> The behavior for these is all the same so they're subclassed >> from one base class, but they need to have these particular names so the >> parser knows >> how to consume them when encountered in the source file. That is, for every >> custom >> command the parser encounters, it looks for a class of that name in order to >> tokenize it. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
How does it look for a class? Can you perhaps override the way it looks for a class of that name? So that you can instead return something sensible rather than having to define one of 50 almost identical classes... Irmen -- http://mail.python.org/mailman/listinfo/python-list