why does this unpacking work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Salerno

    #16
    Re: Rate my reply

    Paddy wrote:
    What I am interested in is if John and others might just take time out
    to critique the replies. I'm interested in what the group think makes a
    good comp.lang.pytho n reply: too short, too long; too cryptic, too
    simplistic, too polite (is their such a thing), too nasty; too
    self-effacing, too self-promoting; too long a sig ;-) , too anonymous
    Thanks for the reply. It's kind of hard for me to critique your reply at
    this point, because I'm starting to understand my problem now. But what
    I liked about your help was that you took it in steps and show each
    process. What's always a little confusing is when people immediately
    resort to examples for help instead of explaining it in words first,
    because often times this just duplicates the confusion for the OP. But
    examples definitely help!

    Comment

    • Piet van Oostrum

      #17
      Re: why does this unpacking work

      >>>>Carsten Haese <carsten@uniqsy s.com(CH) wrote:
      >CHOn Fri, 2006-10-20 at 15:14, John Salerno wrote:
      >>What seems to be happening is that 'for x,y in t' is acting like:
      >>>
      >>for x in t:
      >>for y,z in x:
      >>#then it does it correctly
      >CHNo, it's actually behaving like
      >CHfor x in t:
      >CH y,z = t
      y,z = x
      >CH # do something with y and z
      --
      Piet van Oostrum <piet@cs.uu.n l>
      URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C 4]
      Private email: piet@vanoostrum .org

      Comment

      Working...