[Stackless-checkins] CVS: slpdev/src/2.3/dev/Lib copy_reg.py, 1.2, 1.3
Christian Tismer
tismer at centera.de
Mon May 24 19:42:16 CEST 2004
Update of /home/cvs/slpdev/src/2.3/dev/Lib
In directory centera.de:/tmp/cvs-serv32488/Lib
Modified Files:
copy_reg.py
Log Message:
Stackless 3.1 passes all tests, again.
Re-implemented the old channel behavior (prefer receiver)
Added new flags to channels which control behavor.
Extended the C API.
Nice result:
Thread communication is 8 times slower than soft channels!
Index: copy_reg.py
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/dev/Lib/copy_reg.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** copy_reg.py 29 Apr 2004 02:36:21 -0000 1.2
--- copy_reg.py 24 May 2004 17:42:14 -0000 1.3
***************
*** 72,76 ****
# we need to substitute here:
reducer = dispatch_table.get(base)
! if reducer:
base = reducer(self)[0]
## Stackless addition END
--- 72,76 ----
# we need to substitute here:
reducer = dispatch_table.get(base)
! if reducer and reducer.__module__ == "stackless._wrap":
base = reducer(self)[0]
## Stackless addition END
_______________________________________________
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