[Python-Dev] Re: [Python-checkins] python/nondist/sandbox/datetime obj_delta.c,1.14,1.15 test_both.py,1.15,1.16

Tim Peters tim.one@comcast.net
Mon, 02 Dec 2002 13:42:35 -0500


[Michael Hudson]
> You need to arrange for a module name to appear in timedelta's
> tp_name:

Ya, I figured that out.  The next surprise was the need to create a
__safe_for_unpickling__ attr in the type's dict.  This was confusing because
none of it was necessary for the Python implementation of this stuff, and
examples of the necessity for, and mechanics of, __reduce__, were hard to
find.