Python IDE wanted, good, cheap and fast. :)

When editing Python text, I usually use emacs on Linux and XEmacs on Windows. However, I would love a cross-platform Python development environment in the style of Visual Slickedit or similar…

Crash Different

MijKopThee, a popular Dutch blog, has a link to this cool clip of very, err, enthusiastic Mac user. Be warned, it needs a Windows Media 9 codec. Doh.
For your reference, I like Macs…

I’ve just been reloaded

Finally I too went to see Reloaded. We went to a particularly cozy little cinema in Delft called The Apollo…

Swapping variables without a temporary

This is from the first recipe in my brand-new Python cookbook. It’s quite obvious, but it hasn’t really struck me before. Well doh…

A quick Python note

Have a look at this brief snippet:

In [2]: a = range(10)
In [3]: 3 in a
Out[3]: 1
In [4]: 3 not in a
Out[4]: 0
In [5]: not (3 in a)
Out[5]: 0

Input/output 4 should strike you as a tad strange if you don’t know Python that well but are familiar with similar constructs in other languages…

Python new-style objects and __slots__

This should be very useful:

In [5]: class oldObject:
…: ….def __init__(self):
…: ……..self.someVar = 1
…:
In [6]: o1 = oldObject()
In [7]: o1.someVar = 2
In [8]: o1.someOtherVar = 3

This is of course expected behaviour…

Python bookses

I broke down and ordered Python in a Nutshell by the Python guru Alex Martelli as well as The Python Cookbook, edited by Alex Martelli and David Ascher…

Where are the frikking WMDs?

Yes, where are those Weapons of Mass Destruction that the US was warning everybody about?..