[Stackless-checkins] CVS: slpdev/src/2.2/src/Stackless/test test_pickle.py, 1.13, 1.14

Christian Tismer tismer at centera.de
Mon May 3 18:50:21 CEST 2004


Update of /home/cvs/slpdev/src/2.2/src/Stackless/test
In directory centera.de:/tmp/cvs-serv19975/test

Modified Files:
	test_pickle.py 
Log Message:
completely back-ported Stackless to Python 2.2.3.
It passes all relevant tests, supports pickling etc.
The gola is to keep the core files identical as long
as possible. This caused a few changes to the test files,
which need to figure out which tests to omit, for instance.

This 2.2.3 versiion is almost identical to the original, but
a few changes:
- Pickling does not check for __safe_for_unpickling__
- Generators don't need from __future__ import generators
- code objects have a builtin tp_new method.

These changes *all* vanish if STACKLESS_OFF is defined.

Index: test_pickle.py
===================================================================
RCS file: /home/cvs/slpdev/src/2.2/src/Stackless/test/test_pickle.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_pickle.py	11 Mar 2004 15:26:05 -0000	1.13
--- test_pickle.py	3 May 2004 16:50:18 -0000	1.14
***************
*** 37,43 ****
      print lev*" " + "leaving", lev+1
  
! pickl = pickle # note that the refcounts are correct with pickle.py
! # but also note that in 2.2, pickle seems broken for extension types
! # which are referencing themselves...
  
  print
--- 37,41 ----
      print lev*" " + "leaving", lev+1
  
! pickl = pickle
  
  print


_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins



More information about the Stackless-checkins mailing list