def register_serializers(self, serializers):
for new_serializer in serializers:<EOL><INDENT>if not isinstance(new_serializer, serializer.Base):<EOL><INDENT>msg = "<STR_LIT>" % (<EOL>new_serializer.__module__,<EOL>new_serializer.__class__.__name__<EOL>)<EOL>raise TypeError(msg)<EOL><DEDENT><DEDENT>self._serializers = self._serializers + serializers<EOL>
Adds extra serializers; generally registered during the handler lifecycle