Python 3.0 Breaks Backwards Compat

But has lots of shiny new thigns to play with.

My Take

It feels like its been in development for a lifetime and its hard to believe its finally come around.  Some highlights include:

  • Print is now a function so must be called like:
    print("Doug is king of the world")
  • Comparisons tightened up – No longer can you mix and match differing types without getting a ValueError raised.
  • No longer a need for “long” as all ints are technically longs.
  • Finally the “1/2″ expression returns a float.
  • “as” and “with” introduced.
  • Can no longer use back ticks.
  • No longer use <> to mean != (thank god – I hated that!!)
  • Automatically attempts to import C-based modules when importing the standard Python versions.

Loads, loads more but I’m hardly going to rewrite the entire changes document verbatim.  If you really want the full list then go here.

I’m happy with change though I can see some of these taking some getting used to.  Especially some of the most commonly used, core areas of the language.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Google Bookmarks
  • BlinkList
  • DZone
  • Live
  • Ma.gnolia
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon

Related posts:

  1. Python Templating
  2. Python GUI Programming? Painful
  3. Top 15 Python E-Books (legal & free)
  4. Parsing Time Using Python
  5. 5 Python Vids

2 Comments to “Python 3.0 Breaks Backwards Compat”

  1. Laguna Niguel Real Estate 18 December 2008 at 9:38 pm #

    I think 3.0 is the coolest of all. Thanks to sharing the news with us.

  2. Free Audio Books 18 December 2008 at 10:33 pm #

    Totally agree to Laguna realty guy. This 3.0 is easy to use and great functionality.