Discussion:
[Python-3000-checkins] r65905 - python/branches/py3k/Lib/multiprocessing/managers.py
amaury.forgeotdarc
2008-08-20 08:58:41 UTC
Permalink
Author: amaury.forgeotdarc
Date: Wed Aug 20 10:58:40 2008
New Revision: 65905

Log:
Partially revert r65883 to let the tests pass.

I am working on the proper fix, which is to use the custom pickler in connection.send(),
instead of the standard pickle.dumps().


Modified:
python/branches/py3k/Lib/multiprocessing/managers.py

Modified: python/branches/py3k/Lib/multiprocessing/managers.py
==============================================================================
--- python/branches/py3k/Lib/multiprocessing/managers.py (original)
+++ python/branches/py3k/Lib/multiprocessing/managers.py Wed Aug 20 10:58:40 2008
@@ -45,6 +45,8 @@
return list, (list(obj),)
for view_type in view_types:
ForkingPickler.register(view_type, rebuild_as_list)
+ import copyreg
+ copyreg.pickle(view_type, rebuild_as_list)

#
# Type for identifying shared objects

Loading...