Slashdot Mirror


Python 3.0 Released

licorna writes "The 3.0 version of Python (also known as Python3k and Python3000) just got released few hours ago. It's the first ever intentionally backwards-incompatible Python release."

29 of 357 comments (clear)

  1. good by Anonymous Coward · · Score: 4, Funny

    previous releases were incompatibilie with earlier ones unintentinally.

  2. No mac version yet? by neoform · · Score: 2, Funny

    Where's the mac version..?

    --
    MABASPLOOM!
    1. Re:No mac version yet? by hawk · · Score: 2, Funny

      >You download the .tart.gz or .tar.bz2 source packages and build it. \

      At last, what the world has been waiting for: a language for bimbos and airheads! :)

      hawk

    2. Re:No mac version yet? by geminidomino · · Score: 2, Funny

      WTF are you talking about? Visual Basic has been around since 1991!

  3. Re:woohoo by Anonymous Coward · · Score: 5, Funny

    But I just came in here for an argument!

  4. from __future__ import braces by slumberheart · · Score: 5, Funny

    SyntaxError: maybe in 3.5

  5. Re:That marks my end of use for Python by lahvak · · Score: 4, Funny

    So what are you going to do, take all your existing Python applications and rewrite them in a different language, in order to avoid the "significant amount of work to maintain existing functionality with new language version"?

    --
    AccountKiller
  6. Re:And now to wait by morgan_greywolf · · Score: 5, Funny

    Nope. Python 3.11 for Workgroups.

  7. Re:Hey! by drewness · · Score: 4, Funny

    As someone mentioned above, try


    from __future__ import braces

    and see what happens. ;)

    As for Ruby, I don't really follow its development or use it, but I was reading just the other day that they're really focused on finishing 1.9, which does byte-compiling and some optimization. The current version (like JS before spidermonkey, V8, and squirrelfish) walks and executes the AST (as I understand it), which is slooow.

  8. I don't know why this story's flagged "endofdays" by Slartibartfast · · Score: 4, Funny

    That'll be when Perl 6.0 ships.

  9. Porting? Instantly! by jonaskoelker · · Score: 2, Funny

    I heard they're going to use Python 3.0 for the impending from-scratch rewrite of DNF.

  10. Re:woohoo by Hal_Porter · · Score: 5, Funny

    No you didn't.

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  11. Re:Hey! by Ragzouken · · Score: 3, Funny

    What whitespace problem?

  12. Re:Libraries by gardyloo · · Score: 2, Funny

    unless the language is in the tail end of its life, like Fortran and Cobol

    Thus the phrases "The looooooooooong tail" and "You're ALL tail, baby".

  13. Re:That marks my end of use for Python by moranar · · Score: 4, Funny

    Besides teh above remark of well thoguth migration paths - it is importante to remakr that support for python 2.x has not ended in any way.

    As far as Iam aware, the recomendation is to keep working with python 2.6 - and use the py2to3 script to regularly to make 3.0 releases if you you can ...

    Are you typing while drunk?

    --
    "I think it would be a good idea!"
    Gandhi, about Internet Security
  14. Re:print function by moranar · · Score: 2, Funny

    You seem to want Perl. You can find it at http://www.perl.org/

    --
    "I think it would be a good idea!"
    Gandhi, about Internet Security
  15. Re:woohoo by Chapter80 · · Score: 4, Funny
    GREAT!

    Interestingly, it IS backwards compatible in areas that you wouldn't think it should be. For instance, the following program takes the version number, adds one to it, and divides by two. You'd think it'd give a different answer between version 3 and version 2. Glad they kept this program working for me, as it's the secret production code that runs my multi-million dollar business.

    import sys
    version=int(sys.version[0])
    print (version+1)/2

    Prints 1 in either version. (on the bright side, 1/2 is now 0.5!)

  16. Re:woohoo by Chapter80 · · Score: 3, Funny

    oops I really screwed that joke up... crap. somebody fix it.. you know what I was trying to do!

  17. Re:I don't know why this story's flagged "endofday by Abreu · · Score: 4, Funny

    Signs of the apocalypse:

    * A black man was elected President of the US - November 4, 2008
    * Chinese Democracy was released - November 23, 2008
    * Python 3000 is released - December 4, 2008
    * ?
    * ?
    * Large Hadron Collider starts operations - ?
    * Duke Nukem Forever is released - ?

    --
    No sig for the moment.
  18. Re:woohoo by Random+BedHead+Ed · · Score: 5, Funny

    I think you should use a few more posts to explain the joke. The more you go on the funnier it gets. :)

  19. Re:And now to wait by Random+BedHead+Ed · · Score: 4, Funny

    This post was reserved for the Python NT 3.5 joke, but it has been postponed until the next release (along with a database-driven filesystem the Python developers swear they're working on).

  20. Re:That marks my end of use for Python by Random+BedHead+Ed · · Score: 2, Funny

    Besides teh above remark of well thoguth migration paths - it is importante to remakr that support for python 2.x has not ended in any way.

    As far as Iam aware, the recomendation is to keep working with python 2.6 - and use the py2to3 script to regularly to make 3.0 releases if you you can ...

    Are you typing while drunk?

    No, he generated that comment with Python 2.6 code but ran it with the new release.

  21. Re:woohoo by ragefan · · Score: 3, Funny

    An argument isn't just contradiction!

  22. Re:woohoo by ValuJet · · Score: 5, Funny

    Yes it is.

  23. Re:woohoo by Chapter80 · · Score: 4, Funny
    OK. well, what I was aiming for was:

    True Part:
    In Python version 2, 1/2 = 1 (integer math)
    In Python version 3, 1/2 =0.5 (floating point math)

    Funny part:
    You can do some math on the version number and it comes out the same, even though the version number has changed. Because the divide operation changed too.

    wait, it's not so funny after all. What was I smoking?

  24. Re:And now to wait by Anonymous Coward · · Score: 1, Funny

    I think you got that wrong. A hammer usually isn't considered very subtle.

  25. Re:woohoo by Anonymous Coward · · Score: 1, Funny

    Out of interest, why did they decide to calculate 1/2 as float in Python 3?

    We got sick of explaining integer math to newbies on the python list each and every single day. So it was decided that if we used '//' for integer division and let '/' do what newbs expect we'd be saving ourselves muchos keystrokes in the long run.

  26. Re:I still won't take Python seriously... by Anonymous Coward · · Score: 1, Funny

    I'm glad you brought that up, I can't believe that there is not a single other post or discussion thread here regarding whitespace in Python. I've always wondered why, whenever there's a story about Python on Slashdot or Ars or wherever, there's never, ever, ever even one single comment about how Python deals with whitespace. But you, sir, have broken the seal! Bravo.

  27. Re:woohoo by Capsaicin · · Score: 3, Funny

    It's scary to code something while drunk then come back the next day and think "god, whoever wrote this is clever".

    I don't even need to be drunk! That happens to me regularly ... ah the ageing process.

    --
    Better to be despised for too anxious apprehensions, than ruined by too confident a security. --Edmund Burke