Next / Previous / Contents / Shipman's homepage

7.11. indexer: startModule()

This function opens the output Python module and writes the introductory block to it.

# - - -   s t a r t M o d u l e

def startModule():
    '''Create the file and write the introductory block.

      [ if can be opened new for writing ->
          that file  :=  so opened and filled with the introductory
          return that file ]
    outModule = open(OUT_MODULE_PY, 'w')
"""''' Python declarations for ISO-9573 Unicode entities

  Do not edit this file directly.  It is mechanically produced using
  a program described here:
  This file defines Python constants for each of the Unicode entities
  defined in ISO/IEC TR 9573-13.  Refer to:
  Each constant defines a one-character Unicode string whose name has
  the form "U_name" where the name is the same as the Unicode entity name,
  except that periods are replaced by underbars, e.g., &b.Omega;
  becomes "U_b_Omega".
    return outModule