Tag: python

Here you can see a listing of all the posts tagged with python on this website.

  • Python 3.0 released

    Posted on Dec. 4, 2008 at 14:12 +0100 Tagged with

    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.

    0 comments

  • distutils-recipe for buildout

    Posted on Oct. 22, 2008 at 00:10 +0200 Tagged with , , ,

    Today I released something I've planned to write for quite some time now: A very minimal recipe for zc.buildout that can install an arbitrary source distribution of a Python package. Sure, there is already collective.recipe.distutils out there and big kudos to Kevin Teague for his work there, but I had some minor problems with it. I also wanted to get some more practice when it comes to writing recipes for buildout. As always, you can find the result on PyPI and github.

    [more ...]

    0 comments

  • Syntax Highlighting in Markdown with Pygments

    Posted on June 18, 2008 at 23:20 +0200 Tagged with , ,

    If you want to get syntax highlighting using Pygments in Markdown texts, you have more or less 2 options. For one you can work on the HTML output of the Markdown2HTML converter of your choice, or you can try extending Markdown to offer special syntax for stuff you want to pass over to Pygments.

    A good idea if you want to go the first route is the use of some kind of HTML parsing library like BeautifulSoup as shown in this snippet and this article.

    This post will focus on the 2nd approach, though, since it is a bit cleaner :-)

    [more ...]

    0 comments

  • mod_wsgi 2.0 is out

    Posted on March 21, 2008 at 15:33 +0100 Tagged with , , ,

    Over the last couple of months mod_wsgi has become a very good alternative to mod_python and FastCGI if you want to deploy a Python-based web application on Apache. For the last 3 months, this site has been running on it and it's been a great experience. Today, Graham Dumpleton released version 2.0 which comes with tons of nice new features.

    [more ...]

    0 comments

  • Extending SCons: The Short Way

    Posted on Nov. 29, 2007 at 21:15 +0100 Tagged with , ,

    SCons is for me one of the most convenient build systems out there but at least if you take a look at the manual and esp. in the section about writing your own builders, it looks like a little bit of a pain to extend. Or actually there doesn't seem to be a short way to extend build environments at all.

    [more ...]

    0 comments

  • distutils and prefixes

    Posted on Oct. 17, 2007 at 22:04 +0200 Tagged with , ,

    I've tried to get around the whole distutils vs. setuptools issue ever since I started working with Python, but setuptools might have a big advantage on its list when it comes to distributing "complete" applications where I faced some problems with distutils recently.

    [more ...]

    0 comments

  • First taste of Pylons: Rocky

    Posted on Oct. 12, 2007 at 19:56 +0200 Tagged with , , ,

    For the last week or so I've been messing a little bit around with Pylons during my limited free time in order to be of at least of some help for Martin with his new project. I'm not really sure how I should feel about this framework, though.

    [more ...]

    0 comments

  • Python Magazine #1

    Posted on Oct. 7, 2007 at 23:10 +0200 Tagged with ,

    For the last two days I wanted to write about it ... but I actually wanted to wait until I had finished reading it. Thanks to quite a lot of other stuff (OK, probably mostly Halo 3) it takes longer than I had anticipated, so I will just write about it after being only halfway through.

    [more ...]

    0 comments

  • Automating stuff with SCons

    Posted on Sept. 24, 2007 at 23:14 +0200 Tagged with ,

    Once again a post about a tool that I use quite frequently (or plan to). This time: SCons. If you know the GNU Make utility, SCons tries to solve the same problems while having a quite different philosophy. But that's just fine since I also use it for other stuff and not just compiling C code ;-)

    [more ...]

    0 comments

  • Getting to know Twisted

    Posted on Sept. 20, 2007 at 18:42 +0200 Tagged with , ,

    Lately I've been in need for some simple client-server solutions that do specific jobs like transcoding a video using mencoder or simply adding an AVI container to a FLV videostream and MP3 audiostream. So I started taking a close look at the Twisted framework for Python ...

    [more ...]

    0 comments