Slashdot Mirror


Python Family Gets a Triplet Of Updates

The Python developers have been busy this weekend, releasing three new versions at different points on the Python continuum: 2.7.4 (a 2.7 series bugfix release), 3.2.4 (what's new), and production releases 3.3.1. Here's what's new in 3.3.1.

4 of 196 comments (clear)

  1. Re:Not that surprising by lattyware · · Score: 4, Insightful

    That's how you end up being PHP. Python 3 fixes core mistakes made in earlier versions of the language, and makes it harder to write bad code. That's a good thing, and the last thing you want is a language full of 20 ways to do something, 18 of which are deprecated. Removing backwards compatibility for the 3.x line was a good idea.

    --
    -- Lattyware (www.lattyware.co.uk)
  2. Re:2.7.4 by mrvan · · Score: 3, Insightful

    I think it is 'dependencies dependencies' more than laziness. Few real-world projects depend only on the stdlib, and for these projects it is necessary to wait for at least the majority of depencies to adopt 3.x before porting becomes feasible, even if the porting itself is relatively straightforward. Of course, you can fork any dependencies and port them yourself, but the whole point of not reinventing a wheel is avoiding the maintenance on said wheel...

  3. Re:Still broken by znrt · · Score: 2, Insightful

    it's indeed not a language intended for code monkeys. feel free to move along. here, have a banana.

  4. Re:Not that surprising by dbrueck · · Score: 4, Insightful

    Try this: take a well-formatted C or Java program and remove all the curly braces, and try to objectively quantify how much this affects your ability to determine the program's structure. Now, take the same program and leave the curly braces but remove all the indentation and again make your best guess about how much this affects your ability to determine the program's structure.

    Now ask yourself two questions:
    1) Which of the two (indentation or curly braces) is the much stronger indicator of program structure to a human?
    2) Which of the two is the much stronger indicator of program structure to the computer?

    (hint: if you're completely honest, you'll almost certainly come up with different answers for #1 and #2 :) )

    Doesn't it seem just a little weird that the primary indicator of program structure to the human isn't the one that actually matters from the computer's perspective? I'm not saying it's this massive problem, but at the same time it seems odd to fault a language like Python for taking the main block structure indicator from modern languages and have both the human and the computer rely on it. No redundancy, and no chance for two competing block structure indicators to ever be out of sync.

    Again, if you want a language where curlies are required, that's fine, but hopefully you can at least see that what Python does is both sensical and pragmatic.