Author: Alex
Date: 2011-09-10 12:45:16 -0700 (Sat, 10 Sep 2011)
New Revision: 16786

Modified:
   django/trunk/django/template/base.py
Log:
Make a comment more accurate.

Modified: django/trunk/django/template/base.py
===================================================================
--- django/trunk/django/template/base.py        2011-09-10 18:58:30 UTC (rev 
16785)
+++ django/trunk/django/template/base.py        2011-09-10 19:45:16 UTC (rev 
16786)
@@ -1045,7 +1045,9 @@
     global templatetags_modules
     if not templatetags_modules:
         _templatetags_modules = []
-        # Populate list once per thread.
+        # Populate list once per process. Mutate the local list first, and then
+        # assign it to the global name to ensure there are no cases where two
+        # threads try to populate it simultaneously.
         for app_module in ['django'] + list(settings.INSTALLED_APPS):
             try:
                 templatetag_module = '%s.templatetags' % app_module

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to