Commit dd4479e8 authored by Jim Fulton's avatar Jim Fulton

Added complex number support, for it's own sake and as an extension

example.
parent 8145e1e1
......@@ -9,3 +9,9 @@ def pickle(ob_type, pickle_function, constructor_ob = None):
def constructor(object):
safe_constructors[object] = 1
def pickle_complex(c):
return complex,(c.real, c.imag)
pickle(type(1j),pickle_complex,complex)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment