bson/_cbsonmodule.c
/* Get an error class from the bson.errors module.
 *
 * Returns a new ref */
Get an error class from the bson.errors module.
Returns a new ref
Get an error class from the bson . errors module . Returns a new ref
static PyObject* _error(char* name) {
    PyObject* error;
    PyObject* errors = PyImport_ImportModule("bson.errors");
    if (!errors) {
        return NULL;
    }
    error = PyObject_GetAttrString(errors, name);
    Py_DECREF(errors);
    return error;
}
static PyObject * _error ( char * name ) { PyObject * error ; PyObject * errors = PyImport_ImportModule ( " " ) ; if ( ! errors ) { return NULL ; } error = PyObject_GetAttrString ( errors , name ) ; Py_DECREF ( errors ) ; return error ; }
Get an error class from the bson.errors module.
Get an error class from the bson . errors module .