[Python-ideas] add a list.swap() method

Aahz aahz at pythoncraft.com
Wed Jun 24 18:50:20 CEST 2009

On Wed, Jun 24, 2009, Kristj?n Valur J?nsson wrote:
> I agree that as presented, it is a bit radical due to the concerns
> raised by Raymond and others.  But I still think it is a useful recipe
> for those that know what they are doing, and then perhaps as the
> standalone function, SwapLists(a,b) like we implemented in-house for
> our purposes.  I wonder, where do such recipes belong?

Python Cookbook, for starters:

You might also upload a small module to PyPI.
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"as long as we like the same operating system, things are cool." --piranha

More information about the Python-ideas mailing list