Hi Andreas,
I've created a patch for the fix here:
I think this is the way to get it into the next release.
Best Regards,
Hi Christian!

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?

Best regards,