Patches item #1674228, was opened at 2007-03-05 18:20 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=1674228&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: Žiga Seilnacht (zseil) Assigned to: Nobody/Anonymous (nobody) Summary: sq_ass_slice ignored if sq_slice not defined Initial Comment: Function assign_slice in ceval.c is checking for the presence of type->tp_as_sequence->tp_slice method instead of type->tp_as_sequence->tp_ass_slice method. This means that simple slice assignment fails for classes that have a __setslice__ method, but are missing a __getslice__ method (see the test in the patch). The change shouldn't break any code that worked before, so I think that it can be safely backported. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1674228&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
