Movatterモバイル変換
[0]ホーム
[Python-Dev] Re: Comparison of cyclic objects
Jeremy Hyltonjeremy@cnri.reston.va.us
Thu, 13 Apr 2000 19:19:30 -0400 (EDT)
Looks like the proposed changed to PyObject_Compare matches E for yourexample. The printed representation doesn't match, but I'm not surethat is as important.>>> tight = [1, None, "x"]>>> tight[1] = tight>>> tight[1, [...], 'x']>>> loose = [1, [1, None, "x"], "x"]>>> loose[1][1] = loose>>> loose[1, [1, [...], 'x'], 'x']>>> tight[1, [...], 'x']>>> tight == loose1Jeremy
[8]ページ先頭