MCPcopy
hub / github.com/scrapy/scrapy / freeze

Method freeze

scrapy/settings/__init__.py:632–640  ·  view source on GitHub ↗

Disable further changes to the current settings. After calling this method, the present state of the settings will become immutable. Trying to change values through the :meth:`~set` method and its variants won't be possible and will be alerted.

(self)

Source from the content-addressed store, hash-verified

630 return copy.deepcopy(self)
631
632 def freeze(self) -> None:
633 """
634 Disable further changes to the current settings.
635
636 After calling this method, the present state of the settings will become
637 immutable. Trying to change values through the :meth:`~set` method and
638 its variants won't be possible and will be alerted.
639 """
640 self.frozen = True
641
642 def frozencopy(self) -> Self:
643 """

Callers 4

_apply_settingsMethod · 0.80
frozencopyMethod · 0.80
test_freezeMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_freezeMethod · 0.64