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 rhettinger
Recipients docs@python, eric.smith, ncoghlan, r.david.murray, rhettinger, samwyse
Date 2010-10-23.21:55:07
SpamBayes Score 2.5000785e-05
Marked as misclassified No
Message-id <1287870910.6.0.995110762573.issue10178@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, the text needs to stand as-is.
It is supposed to be a hint of what can be done,
nothing more.

The technique of t=x; x=y; y=t is somewhat basic
and has general applicability -- there's nothing
"complex" about it.   Also, for short strings 
such as the one in the example, the translate 
approach is slower unless the used in a loop
where the translation table is already built.

BTW, the PEP itself is not primary documentation
for users.  It is meant to document the design
discussion only.  

Feel free to post your recipe on ASPN or on
the newsgroup.
History
Date User Action Args
2010-10-23 21:55:10rhettingersetrecipients: + rhettinger, ncoghlan, eric.smith, samwyse, r.david.murray, docs@python
2010-10-23 21:55:10rhettingersetmessageid: <1287870910.6.0.995110762573.issue10178@psf.upfronthosting.co.za>
2010-10-23 21:55:08rhettingerlinkissue10178 messages
2010-10-23 21:55:07rhettingercreate