Django

Code

Changeset 2929

Show
Ignore:
Timestamp:
05/16/06 21:02:26 (2 years ago)
Author:
adrian
Message:

Added comment explaining nonobvious self.dict assignment in django.conf.init.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/__init__.py

    r2927 r2929  
    3434    def __setattr__(self, name, value): 
    3535        if name == '_target': 
     36            # Assign directly to self.__dict__, because otherwise we'd call 
     37            # __setattr__(), which would be an infinite loop. 
    3638            self.__dict__['_target'] = value 
    3739        else: