This particular quirk of Python has been discussed in various places before, but I think it bears repeating as it’s different to the behaviour that you might intuitively expect and consequently catches a lot of people out when writing class methods. When declaring a function or a class method, any default arguments are only evaluated at the point when the function is declared, not when the function is called. For mutable default arguments such as lists or dictionaries, this has the effect of making them static. Consider the following example:

Add New CommentRead More

In this post, I detail how to setup Nagios to monitor a Windows machine via NSClient++


  • A working Nagios install, configured on a server with a fixed IP
  • The latest NSClient++ MSI Installer

NOTE: At time of writing, the latest version of NSClient++ is 0.42 and is recommended as 0.41 has issues with binding to IPv4 addresses

Add New CommentRead More


Subscribe to Aleph Null RSS