Boost is indeed pretty powerful and cool, but I was trying to understand the actual implementation. A bit more searching shows that all is revealed in the relevant PEP http://www.python.org/peps/pep-0253.html