parameters: ()
docstring: (re)build cache using cPickle. This will be automatically called if the
      cachefile is not found, so you can recreate the cache by simply deleting
      the existing one
docstring_summary: (re)build cache using cPickle. This will be automatically called if the
      cachefile is not found, so you can recreate the cache by simply deleting
      the existing one
docstring_tokens: ( re ) build cache using cPickle . This will be automatically called if the cachefile is not found so you can recreate the cache by simply deleting the existing one
function: def _docache():
      """
      (re)build cache using cPickle. This will be automatically called if the
      cachefile is not found, so you can recreate the cache by simply deleting
      the existing one
      """
      # load tris 
      # calculate the sigma value: the probability total of the trigraph set
      # sigma calculation result is cached, since source is relatively static.
      from smsapp.idgen_tris import tris
  
      sigma = 0
      for c1 in xrange(26):
          for c2 in xrange(26):
              for c3 in xrange(26):
                  sigma += tris[c1][c2][c3]
                  # tris cached since cPickle has superior I/O speed than .pyc marshalling
      dumpobj = (tris, sigma)  # dump tuple
      fhw = open(__cachefile, 'w')
      cPickle.dump(dumpobj, fhw)
      fhw.close()
function_tokens: def _docache ( ) : # load tris  # calculate the sigma value: the probability total of the trigraph set # sigma calculation result is cached, since source is relatively static. from smsapp . idgen_tris import tris sigma = 0 for c1 in xrange ( 26 ) : for c2 in xrange ( 26 ) : for c3 in xrange ( 26 ) : sigma += tris [ c1 ] [ c2 ] [ c3 ] # tris cached since cPickle has superior I/O speed than .pyc marshalling dumpobj = ( tris , sigma ) # dump tuple fhw = open ( __cachefile , 'w' ) cPickle . dump ( dumpobj , fhw ) fhw . close ( )