code: def namespace(self, namespace):
          
          # pylint: disable=attribute-defined-outside-init
          self._namespace = _ensure_unicode(namespace)
          if self._namespace is not None:
              # In Python 3, a byte string cannot be stripped by a unicode char
              # Therefore, the stripping needs to be done after the unicode
              # conversion.
              self._namespace = self._namespace.strip('/')
docs: Setter method; for a description see the getter method.