diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-17 02:02:26 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-17 02:02:26 +0000 |
| commit | 268462d686959d8219c1a828ee6850293d45ab67 (patch) | |
| tree | f01914e6a45f4a704d9cca798fa4bcad36509a03 | |
| parent | 88ca662e7562d7dc27b06ffb8291cde160d4ece7 (diff) | |
Added comment explaining nonobvious self.__dict__ assignment in django.conf.__init__.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/conf/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index a9de8e876b..a4aaf46a76 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -33,6 +33,8 @@ class LazySettings: def __setattr__(self, name, value): if name == '_target': + # Assign directly to self.__dict__, because otherwise we'd call + # __setattr__(), which would be an infinite loop. self.__dict__['_target'] = value else: setattr(self._target, name, value) |
