[Python-checkins] CVS: python/dist/src/Lib pickle.py,1.48,1.48.4.1

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 16 Jun 2001 07:34:34 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9095

Modified Files:
      Tag: descr-branch
	pickle.py 
Log Message:
Make type objects picklable.  They are pickled as globals.  This isn't
always right, but works for the important cases.


Index: pickle.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pickle.py,v
retrieving revision 1.48
retrieving revision 1.48.4.1
diff -C2 -r1.48 -r1.48.4.1
*** pickle.py	2001/04/10 05:02:52	1.48
--- pickle.py	2001/06/16 14:34:32	1.48.4.1
***************
*** 505,508 ****
--- 505,509 ----
      dispatch[FunctionType] = save_global
      dispatch[BuiltinFunctionType] = save_global
+     dispatch[TypeType] = save_global