main
main copied to clipboard
pickle on python object derived from collections.deque
IronPython 1.0 (1.0) on .NET 2.0.50727.112
Copyright (c) Microsoft Corporation. All rights reserved.
from collections import deque
class C(deque): pass
...
import pickle
c = C('abc')
pickle.dumps(c)
Traceback (most recent call last):
File , line 0, in ##93
File D:\IP\Lib\pickle.py, line 1366, in dumps
File D:\IP\Lib\pickle.py, line 224, in dump
File D:\IP\Lib\pickle.py, line 331, in save
File pickle, line unknown, in save_reduce
File D:\IP\Lib\pickle.py, line 400, in save_reduce
File D:\IP\Lib\pickle.py, line 286, in save
File D:\IP\Lib\pickle.py, line 746, in save_global
pickle.PicklingError: Can't pickle : it's not found as IronPython.NewTypes.IronPython.Modules in snippets1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.PythonCollections+PythonDequeCollection_2
pickle.py is from CPython lib.
PLEASE update python25 test\test_deque.py after fixing this.
Work Item Details
Original CodePlex Issue: Issue 23696 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 27, 2009 at 11:17 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:13 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. CreatedDate: 10/24/2006 NewInternalID: 409481 OldInternalID: 149148 AreaPath: IronPython\Modules