def __init__(self, handlers, fallback=False):
Resource.__init__(self)<EOL>self._handlers = list(handlers)<EOL>self._fallback = fallback<EOL>self._acceptHandlers = {}<EOL>for handler in self._handlers:<EOL><INDENT>for acceptType in handler.acceptTypes:<EOL><INDENT>if acceptType in self._acceptHandlers:<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>' % (acceptType,))<EOL><DEDENT>self._acceptHandlers[acceptType] = handler<EOL><DEDENT><DEDENT>
:type  handlers: ``iterable`` of `INegotiableResource` and either
    `IResource` or `ISpinneretResource`.
:param handlers: Iterable of negotiable resources, either
    `ISpinneretResource` or `IResource`, to use as handlers for
    negotiation.

:type  fallback: `bool`
:param fallback: Fall back to the first handler in the case where
    negotiation fails?