This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Robert.Kern, mark.dickinson
Date 2011-03-25.20:10:15
SpamBayes Score 2.7009506e-12
Marked as misclassified No
Message-id <1301083815.9.0.890146212027.issue11673@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the patch.

Are there practical cases where the operator.index check is more useful that the isinstance(..., (int, long)) check that you originally proposed (off-tracker)?  While I agree that it's the right fix in principle, the operator.index check smells a bit like new functionality to me, and risks changing behaviour for those (rare, I hope) user-defined classes that implement both __index__ and sequence methods.
History
Date User Action Args
2011-03-25 20:10:15mark.dickinsonsetrecipients: + mark.dickinson, Robert.Kern
2011-03-25 20:10:15mark.dickinsonsetmessageid: <1301083815.9.0.890146212027.issue11673@psf.upfronthosting.co.za>
2011-03-25 20:10:15mark.dickinsonlinkissue11673 messages
2011-03-25 20:10:15mark.dickinsoncreate