MCPcopy
hub / github.com/scrapy/scrapy / frozencopy

Method frozencopy

scrapy/settings/__init__.py:642–650  ·  view source on GitHub ↗

Return an immutable copy of the current settings. Alias for a :meth:`~freeze` call in the object returned by :meth:`copy`.

(self)

Source from the content-addressed store, hash-verified

640 self.frozen = True
641
642 def frozencopy(self) -> Self:
643 """
644 Return an immutable copy of the current settings.
645
646 Alias for a :meth:`~freeze` call in the object returned by :meth:`copy`.
647 """
648 copy = self.copy()
649 copy.freeze()
650 return copy
651
652 def __iter__(self) -> Iterator[_SettingsKey]:
653 return iter(self.attributes)

Callers 2

get_spider_loaderFunction · 0.80
test_frozencopyMethod · 0.80

Calls 2

copyMethod · 0.95
freezeMethod · 0.80

Tested by 1

test_frozencopyMethod · 0.64