Changes between Version 15 and Version 16 of DjangoSpecifications/Core/Threading


Ignore:
Timestamp:
Apr 14, 2008, 2:56:58 AM (17 years ago)
Author:
mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DjangoSpecifications/Core/Threading

    v15 v16  
    2525 * errors due to incomplete initialization.
    2626
    27 Incomplete initialization errors can generally be avoided by using full
    28 assignment instead of elementwise modification (that's how it is done in the
    29 source mostly). That is,
     27Incomplete initialization errors can generally be avoided by using full assignment instead of elementwise modification (that's how it is done in the source mostly):
    3028
    3129'''BAD'''
     
    4947      for x in y:
    5048         tmp.append(x)
    51       foo = tmp # atomic assignment
    52 }}}
    53 
    54 The following modules' use of globals needs review.
     49      foo = tmp # assignment is "atomic"
     50}}}
     51
     52=== Modules' use of globals ===
    5553
    5654See below for raw `grep` results.
     
    5957||settings and global_settings||?||not reviewed||
    6058||utils/_decimal.py||lots, including code||not reviewed||
    61 ||django/contrib/sites/models.py||SITE_CACHE||minor, one db hit intended, more than one possible||
    62 
    63 === django/contrib/sites/models.py ===
    64 
    65 Globals used:
    66 {{{
    67 SITE_CACHE
    68 }}}
    69 
    70 === django/template ===
    71 
    72 Globals used:
    73 {{{
    74 context.py: _standard_context_processors
    75 __init__.py: invalid_var_format_string, libraries
    76 loader.py: template_source_loaders
    77 }}}
    78 
    79 === django/utils/translation ===
    80 
    81 Globals used:
    82 {{{
    83 trans_real.py: _accepted, _active, _default, _translations
    84 }}}
    85 
    86 === django/contrib/sites/models.py ===
    87 
    88 Globals used:
    89 {{{
    90 SITE_CACHE
    91 }}}
    92 
    93 
    94 
    95 {{{
    96 }}}
    97 
    98 == Raw `grep` results ==
    99 
    100 === Globals accessed with the `global` keyword ===
     59||django/contrib/sites/models.py||`SITE_CACHE`||minor, one db hit intended, more than one possible||
     60||django/template/context.py||`_standard_context_processors`||||
     61||`django/template/__init__.py`||`invalid_var_format_string, libraries, builtins`||||
     62||django/template/loader.py||`template_source_loaders`||||
     63||django/template/loaders/app_directories.py||`app_template_dirs`||||
     64||django/utils/translation/trans_real.py||`_accepted, _active, _default, _translations`||||
     65||django/core/urlresolvers.py||`_callable_cache, _resolver_cache`||`memoize` decorator||
     66||`django/core/serializers/__init__.py`||`_serializers`||||
     67||django/db/models/fields/related.py||`pending_lookups`||||
     68||django/db/transaction.py||`dirty, state`||||
     69||django/dispatch/dispatcher.py||`connections, senders, sendersBack||||
     70
     71=== Raw `grep` results ===
     72
     73==== Globals accessed with the `global` keyword ====
    10174
    10275{{{
     
    12194Out of these, `django.core.management` is not used in multi-threading context.
    12295
    123 === Global dictionaries ===
     96==== Global dictionaries ====
    12497
    12598{{{
     
    207180}}}
    208181
    209 === Global lists ===
     182==== Global lists ====
    210183
    211184{{{
Back to Top