Kristján Valur Jónsson <krist...@ccpgames.com> added the comment: 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6326> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com