Beginner Question

Erik Max Francis max at alcyone.com
Fri Mar 28 04:43:48 CET 2003


Kevin Reeder wrote:

> And that may be what they're getting at as a way to make me analyze
> the
> process, but isn't the sequence assignment more or less an abbreviated
> way
> of doing the same thing? I've been thinking that there is some other
> way that is eluding me.

They're just asking you for another way of doing a swap rather than
tuple assignment.  Using a temporary variable is certainly one way (and
is the typical way of doing it in languages which don't support
something like automatic sequence packing/unpacking like Python does).

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ It's soulful music.  It doesn't necessarily sound like ... soul ...
\__/ Sade Adu
    Bosskey.net: Quake III Arena / http://www.bosskey.net/q3a/
 A personal guide to Quake III Arena.




More information about the Python-list mailing list