News for hackers. Stuff that matters.
Re:Python 3 Features by jlarocco on Sunday June 29, 2014 @02:15PM (#7961908)
I agree. I use Python3, but for none of the reasons given. Some of the advice was just flat out bad, IMO.

Like replacing

    def wat(a, b, *args)
with

    def wat(*args)
        a, b, args = *args
Re:Python 3 Features by mewwts on Sunday June 29, 2014 @02:26PM (#7961936)
I'm sure (I hope) that was just a proof of concept. It's a horrible idea!
Re:Python 3 Features by eliben on Sunday June 29, 2014 @03:12PM (#7962050)
No one in the Python community is advocating the "replacement". I think it's just an example of new syntax.
Re:Python 3 Features by sourpoi on Monday June 30, 2014 @05:14AM (#7964277)
Slight typo - the sample replacement should read:

  def wat(*args)
    a, b, *args = args
..But I don't see how moving required arguments from the signature to the body (or turning a TypeError into a ValueError) might be useful, or how it differs from the presentation's first advanced unpacking example.