Index: _Missing.c =================================================================== --- _Missing.c (revision 68297) +++ _Missing.c (working copy) @@ -242,7 +242,7 @@ &Missing_as_number, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ - (hashfunc)0, /*tp_hash*/ + (hashfunc)_Py_HashPointer, /*tp_hash*/ (ternaryfunc)Missing_call, /*tp_call*/ (reprfunc)Missing_str, /*tp_str*/ (getattrofunc)Missing_getattr, /*tp_getattro*/ Index: tests.py =================================================================== --- tests.py (revision 68297) +++ tests.py (working copy) @@ -33,6 +33,14 @@ >>> Value == Value + 1 1 +Missing values can be pickled: + + >>> from pickle import dumps, loads + >>> dumps(Value) + 'cMissing\\nV\\np0\\n.' + >>> loads(dumps(Value)) is Value + True + $Id$ """ import unittest