Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Python 3.0 "Python 3000" Released

  1. #1
    Join Date
    Jan 2007
    Posts
    15,089

    Default Python 3.0 "Python 3000" Released

    Phoronix: Python 3.0 "Python 3000" Released

    The Python Software Foundation has this afternoon announced the much-anticipated release of Python 3.0 (a.k.a. Python 3000)...

    http://www.phoronix.com/vr.php?view=NjkwMQ

  2. #2
    Join Date
    Jun 2007
    Location
    The intarwebs
    Posts
    385

    Default

    I think it's awesome that they provide a conversion utility... I hope that the transition is relatively painless and quick.
    ..python FTW

  3. #3
    Join Date
    Sep 2007
    Location
    Germany, Munich
    Posts
    17

    Default

    I don't like that it's slower than python 2.5 But I guess they'll work that out.

    But one thing I really like is the new string and unicode stuff. I had so much problems with it and some special characters....

  4. #4
    Join Date
    Dec 2007
    Posts
    677

    Default

    ... and this is how unmaintained, but crucial and irreplacable apps go to die.

  5. #5
    Join Date
    Nov 2007
    Posts
    315

    Default

    true (there is one script in particular I don't want to die [denyhosts] - might spend some time py30 converting it, its not that hard actually)

    While python have broken backwards compatibility (its not the 1st time, its just the 1st MAJOR time) it was needed to correct "mistakes" that had to be made early on in the language to allow it to develope, they have provided means to easily translate py2 code to be py3 compatable

  6. #6
    Join Date
    Sep 2007
    Posts
    122

    Default

    It's a good thing to throw out old stuff that doesn't fit into the big picture anymore.

    Just look at this mess called PHP, where the developers don't have the guts for it.

  7. #7
    Join Date
    May 2008
    Posts
    45

    Default

    so distros will have to ship with two versions of python now?

  8. #8
    Join Date
    Sep 2008
    Posts
    123

    Default

    Last time i checked with aptitude i had 2.5 and 2.4 installed, and they where both in the repo. So what's the big deal with several versions? Rather that than having all languages older than a year beeing crippled with beeing compatible with early mistakes in the design.

  9. #9
    Join Date
    May 2008
    Posts
    45

    Default

    but how do scripts discriminate which python to use?

  10. #10
    Join Date
    Nov 2007
    Posts
    315

    Default

    Quote Originally Posted by alec View Post
    but how do scripts discriminate which python to use?
    The joys of shebangs

    you know those little one-liners at the start of scripts that you have seen but probably not thought about?

    Code:
    #!/bin/bash
    That tells the sh what interpreter to use. The VAST majority of the time a python script will either use:

    Code:
    #!/usr/bin/env python
    to pull from the system environement what the default python interpretor is OR they do:
    Code:
    #!/usr/bin/python
    Where /usr/bin/python is a symlink to say... /usr/bin/python2.5

    so all (I say all... still alot of work for the distro) would have todo is change the shebang to be a specific py version
    Code:
    #!/usr/bin/python2.2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •