Thanks for looking into this so quickly and doing the digging in documentations. Your code works just fine for me.
I also patched my local swig copy – i.e. changed the macro in Lib\python\builtin.swg and swig now produces working code. What is the way to go to get this into the next release?