def poke_native(getstate):
def poke(service, objname, obj, container, visited=None, _stack=None):<EOL><INDENT>service.pokeNative(objname, getstate(obj), container)<EOL><DEDENT>return poke<EOL>
Serializer factory for types which state can be natively serialized.

Arguments:

    getstate (callable): takes an object and returns the object's state
        to be passed to `pokeNative`.

Returns:

    callable: serializer (`poke` routine).