Patches item #1591996, was opened at 2006-11-07 22:32 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1591996&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core (C code) Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Hirokazu Yamamoto (ocean-city) Assigned to: Nobody/Anonymous (nobody) Summary: `in` for classic object causes segfault Initial Comment: This code causes segfault. class Foo: pass foo = Foo() 1 in foo E:\python-dev>py a.py Exception exceptions.TypeError: "argument of type 'instance' is not iterable" in 'garbage collection' ignored Fatal Python error: unexpected exception during garbage collection This bug seems to be introduced by revision 45644 change for Objects/classobject.c # -1 (error) is converted to 0 (False) I think this can be fixed by attached patch. Thank you. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1591996&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
