[Patches] [ python-Patches-1674228 ] sq_ass_slice ignored if sq_slice not defined
SourceForge.net
noreply at sourceforge.net
Mon Mar 5 18:22:26 CET 2007
Patches item #1674228, was opened at 2007-03-05 18:20
Message generated for change (Comment added) made by zseil
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.
----------------------------------------------------------------------
>Comment By: Žiga Seilnacht (zseil)
Date: 2007-03-05 18:22
Message:
Logged In: YES
user_id=1326842
Originator: YES
File Added: assign_slice_25.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1674228&group_id=5470
More information about the Patches
mailing list