Tag Archives: Python

ctypes and addressof

Here’s a gotcha I came across in ctypes a while ago. Have a look at the code below, and see if you can work out what it will print: If you’re using Python 2.x or Python 3.x, then you might … Continue reading

Posted in Python, Software | Tagged , | Leave a comment

Python decorators

I have been learning about decorators recently. It is interesting functionality, but also one of those areas where the issues just keep appearing, the more you look at it. There are some good articles on it here and here To … Continue reading

Posted in Python, Software | Tagged | Leave a comment

Python whitespace

I was asked in an interview yesterday what I think of Python white space. Python is unusual (possibly unique?), in that the indentation of your code is significant, and effects the way that your code is compiled / runs. I … Continue reading

Posted in Python, Software | Tagged | Leave a comment

Python 32/64

As a newbie to Windows 7, I am just enjoying (sic) the introduction to 64-bit software, and the interaction with the legacy 32-bit software.  Luckily, I have just one 16-bit application (nothing to do with Python), which will no longer … Continue reading

Posted in Python, Software | Tagged | Leave a comment

Open-Source

I am constantly amazed by how much great software there is available for free.  As an introduction, here are some that I use on a regular basis: Apache web server 2.2 GCC 3.4.5 Java 1.6.0_18 MinGW / MSYS Mozilla Firefox … Continue reading

Posted in Python, Software | Tagged | Leave a comment