Slashdot Mirror


Python 2.0 Released

atallah writes: "It would appear that the long awaited Python 2.0 was finally released today. The front page of the Web site has the announcement." According to that announcement, Python 2.0 will receive minor-version updates around every 6 months, even as work begins on the shoot-for-the-moon Python 3000. For the curious, here's the list of what's new in 2.0; the list includes "full XML support and several forms of new syntax," as well as the BeOpen label.

4 of 89 comments (clear)

  1. Why? by Anonymous Coward · · Score: 4

    Why would you use a lame language like Python or Perl

    Every one knows that the best language is Visual Ba



    This post has performed an Illegal Operation and will be shutdown.

  2. Re:An honest question. by dbarclay10 · · Score: 4

    Well, there are pluses and minus to using either Perl or Python as a first programming language:

    Perl Pluses:
    You'll probably learn the value of making code readable. Perl is notorious for unmaintainable code.
    Perl follows the, "There's more than one way to do it" philosophy, so you'll likely find that Perl programs you write more closely follow your thought/reasoning patterns.

    Perl Minuses:
    Because there are so many different ways of accomplishing the same goal, it might take longer to learn the language since you'll really have to think about what you want to do.

    Python Pluses:
    Very structured language - makes it easier to navigate for a beginner.
    There are fewer ways to do one thing than with Perl, so it'll probably be quicker to learn the entire language. There arn't as many "gotcha"s.

    Python Minuses:
    Might be too structured for a beginner, but I've found it easier to teach than most other languages.
    Sometimes it's a pain to do what you want, and you might have to go about it in a roundabout way.

    Just my two cents, based on rather limited experience ;)

    Dave
    'Round the firewall,
    Out the modem,
    Through the router,
    Down the wire,

    --

    Barclay family motto:
    Aut agere aut mori.
    (Either action or death.)
  3. The REAL whats new for Python 2.0 by crisco · · Score: 5
    The link provided is a little misleading as it goes one by one through the release candidates, take a look at What's New in Python 2.0 for a better list and an explanation for the quick release of Python 1.6 followed by 2.0 in just a few months. Also explained is the newer development process.

    The changes seem to be an incremental evolution of the language, not a groundbreaking new language. But if you are a language / tools junkie like me, you owe it to yourself to take a look, even if you're turned off by the rumors of mandated indenting.

    --

    Bleh!

  4. Real Python experiences from a VB wonk by Da+VinMan · · Score: 5

    Just wanted to throw out some thoughts on why I steered the project I'm currently working on towards Python. My background is mostly in the MS suite of things. I also know Java, Python, Smalltalk, LISP, C, C++, and I've tinkered with Perl, REBOL, Prolog, etc. so I'm no MS bigot; that's just the majority of my experience.

    First of all, why did we choose Python? The project is basically fat client, and could have been done with almost any development environment.

    In our case, Java and VB were the other primary contenders. We need a rapidly developed application that is cross-platform. The customer doesn't have much money at this point, and therefore not much time either. Therefore Java is out. That seems counter-intuitive right? Java is supposed to save a lot of time after all. However, that's only true when you compare Java development time to C or C++ development time. Compare Java's development time to VB or Python's, and it's a completely different story. Java just didn't seem to work at a high enough level of abstraction to get the job done.

    So, why didn't we use VB? That's simple: it's developed for, and stays on, Windows. And that's it. Yes there are products that will let you translate VB to Java. There are some cross-platform Basic products out there. Have you used them though? They don't get the job done very well. And they normally leave it to you to figure out where a translation/cross-compile goes wrong. All in all, it just doesn't have a professional feel to it. Also, while the .NET initiative may push VB into the cross-platform arena soon, it won't be soon enough for me.

    Now, I suppose we could have used Perl, but frankly I fear Perl. Why? Because of the very flexibility it asserts as an advantage. Yes, I can write the solution in pretty much the way I think. Given the fact that I have yet to find two people who think about a problem in the same way though, that's a maintenance problem in what may become a large project.

    Once I selected Python on a preliminary basis, I had to make sure it would actually work. I developed GUIs for it with no problem. We did an XML proof. I did proofs on its object capabilities. I looked at sites and applications developed in Python. Could it handle the (relatively tiny) needs of my project? You bet it can. It can do all of that and more.

    Anyone who wants a relatively impressive sample of what Python can do should take a look at http://wildsau.idv.uni-linz.ac.at/mfx/pysol/. It's a huge (free!) solitaire game with all sorts of options and games. I haven't seen anything else like it come from the other scripting languages (not picking on any one language here though), except VB, and that is not on the list. Pile that game on top of the fact that Python gets used for server-side applications, has two companies actively working on its development (BeOpen and ActiveState), can be used in the JVM (JPython), will be usable in the MS .NET world, and throw in Zope for good measure.

    Python is a VERY strong VB replacement contender.

    --
    Please mod this post only if you think others should/n't read this. I have enough ego^H^H^Hkarma. Thanks!