News for hackers. Stuff that matters.
Re:Python idiom for taking the single item from a list by necubi on Tuesday September 28, 2010 @01:45AM (#1734712)
The same code works in ruby, though without the assertion behavior:

    > a = [0]
    > b, = a
    > b == 0
     => true

There are no comments on this comment yet.