Poking around inside of a Python object has me wondering if there isn't a better way. PyErr_Format( PyExc_TypeError, "argument 'host': expected None or string, %s found", $source == Py_None ? "None" : $source->ob_type->tp_name ); ^^^^^^^^^^^^^^^^^^^^^^^^^ Darned if I can find the query interface though. Thanks, Randall