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 kristjan.jonsson
Recipients kristjan.jonsson, r.david.murray, rhettinger
Date 2009-06-23.18:45:50
SpamBayes Score 8.49019e-05
Marked as misclassified No
Message-id <1245782753.09.0.111548306767.issue6326@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed, I realized that it does allow overriding all kinds of behaviour 
and as such may be dangerous for the unwary.  But isn't it possible to 
do so anyway?

One way to increase safety would be to require that the "other" list is 
not a subclass (PyList_CheckExact(v)) so that no unexpected behaviour 
occurs for it, and so allow the 'target' list to simply override "swap" 
if it deems it unacceptable.

At any rate, I thought I'd share this idea and accept that it needs 
discussion. I'll start a thread on python-ideas.
History
Date User Action Args
2009-06-23 18:45:53kristjan.jonssonsetrecipients: + kristjan.jonsson, rhettinger, r.david.murray
2009-06-23 18:45:53kristjan.jonssonsetmessageid: <1245782753.09.0.111548306767.issue6326@psf.upfronthosting.co.za>
2009-06-23 18:45:51kristjan.jonssonlinkissue6326 messages
2009-06-23 18:45:50kristjan.jonssoncreate