Message89639
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. |
|
Date |
User |
Action |
Args |
2009-06-23 18:45:53 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, rhettinger, r.david.murray |
2009-06-23 18:45:53 | kristjan.jonsson | set | messageid: <1245782753.09.0.111548306767.issue6326@psf.upfronthosting.co.za> |
2009-06-23 18:45:51 | kristjan.jonsson | link | issue6326 messages |
2009-06-23 18:45:50 | kristjan.jonsson | create | |
|