main icon indicating copy to clipboard operation
main copied to clipboard

Python25: the initial value of copy_reg.dispatch_table are different in IronPython and Python2.5

Open ironpythonbot opened this issue 10 years ago • 1 comments

In Python2.5,the initial value of copy_reg.dispatch_table has 5 elements,but in IronPython,just has one.the code as follow:
import copy_reg
t = copy_reg.dispatch_table
for name ,value in t.items():

print name,value

result in Python2.5 is:
<type 'complex'> <function pickle_complex at 0x00BB37B0>
<type 'nt.stat_result'> <function _pickle_stat_result at 0x00BB3A70>
<type 'nt.statvfs_result'> <function _pickle_statvfs_result at 0x00BB3AF0>
<type 'code'> <function pickle_code at 0x00D68970>
<type '_sre.SRE_Pattern'> <function _pickle at 0x00BDADF0>

result in IronPython is:
<type 'complex'>

Work Item Details

Original CodePlex Issue: Issue 8542 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Feb 28, 2007 at 10:11 AM Reported by: junfeng Updated on: Feb 22, 2013 at 2:16 AM Updated by: jdhardy

ironpythonbot avatar Dec 09 '14 16:12 ironpythonbot

We also have the following now:

<type 'nt.stat_result'> <function _pickle_stat_result at 0x00BB3A70>
<type 'nt.statvfs_result'> <function _pickle_statvfs_result at 0x00BB3AF0>

We are still missing _sre.SRE_Patter (which we don't implement).

slide avatar Nov 04 '16 11:11 slide