Archive for 2008/12/04

  • Python 3.0 released

    When I read yesterday night that Python 3.0 was imminent, I looked in awe at my calendar and thought "Is it already that late in the year"? This morning I then woke up, checked the newsfeeds and realized: Yes. Naturally this doesn't mean that everyone will just leave 2.x behind and move over to 3.x right away but this public release hopefully makes it way more attractive to people to finally look into it then was the case with all these preview-builds ;-) And there's much to look into, indeed:

    • A whole new way to handle strings (no longer do you distinguish between unicode strings and normal strings)
    • print is now a function and no longer a statement (which ended up in quite an ugly construct if you used it for printing to a specific IO-object)
    • There is now only one integer type anymore. So long got dropped (and int is the new long)
    • sets and dict now also have their own *-comprehension shortcuts

    and much much more. There are also some syntax changes, but from what I've seen so far Python stays Python :D

    I'm not going to dive into it right away, but Graham Dumpleton also just wrote that mod_wsgi should already work with Python 3.0 with some tweaks if you're using trunk.

    2008/12/04 at 14:12:07

    0 comments

  • Git branches and PS1

    With the release of Mercurial 1.1 yesterday and me more and more getting into it again I complained on IRC that as much as I love git's named branches, they make it kind of easy to just do something to the wrong branch. If you have a branch per folder it's kind of more obvious in what branch you're operating all the time, in my opinion.

    But there is a simple solution for this: Martin today posted a quick guide on how to get the current branch name into your shell's $PS1.

    Read more about "Git branches and PS1" ...

    2008/12/04 at 17:20:45

    1 comments