home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / Chip_2003-01_cd2.bin / convert / eJayMp3Pro / mp3pro_demo.exe / COPY_REG.PYC (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-06-05  |  977 b   |  22 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. dispatch_table = { }
  5. safe_constructors = { }
  6.  
  7. def pickle(ob_type, pickle_function, constructor_ob = None):
  8.     dispatch_table[ob_type] = pickle_function
  9.     if constructor_ob is not None:
  10.         constructor(constructor_ob)
  11.     
  12.  
  13.  
  14. def constructor(object):
  15.     safe_constructors[object] = 1
  16.  
  17.  
  18. def pickle_complex(c):
  19.     return (complex, (c.real, c.imag))
  20.  
  21. pickle(type((0.0+1.0j)), pickle_complex, complex)
  22.