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

Fred L. Drake, Jr. fdrake@acm.org
Mon, 2 Dec 2002 14:55:42 -0500


Tim Peters writes:
 > The docs for __reduce__ say the 2nd component of the return value must be a
 > tuple or None, and the use of None is deprecated. Hence an empty tuple.
I think you can generate an empty tuple there using:
			result = Py_BuildValue("O()O",
					 self->ob_type,
					 state);
Might be a little simpler.
Untested, of course. ;-(
 -Fred
-- 
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation

AltStyle によって変換されたページ (->オリジナル) /