code: def register(self, pattern, view=None):
          '''Allow decorator-style construction of URL pattern lists.'''
          if view is None:
              return partial(self.register, pattern)
          self.patterns.append(self._make_url((pattern, view)))
          return vief register(self, pattern, view=None):
          '''Allow decorator-style construction of URL pattern lists.'''
          if view is None:
              return partial(self.register, pattern)
          self.patterns.append(self._make_url((pattern, view)))
          return view
docs: Allow decorator-style construction of URL pattern lists.