'Return a new Configurator instance with the same registry
as this configurator. ``package`` may be an actual Python package
object or a :term:`dotted Python name` representing a package.'

def with_package(self, package):

    configurator = self.__class__(registry=self.registry, package=package, root_package=self.root_package, autocommit=self.autocommit, route_prefix=self.route_prefix, introspection=self.introspection)
    configurator.basepath = self.basepath
    configurator.includepath = self.includepath
    configurator.info = self.info
    return configurator
