text: #ifndef WOBBLEPY_DICT_H
  #define WOBBLEPY_DICT_H
  
  #define PY_SSIZE_T_CLEAN
  #include <Python.h>
  #include "core.h"
  #include "values.h"
  
  namespace wobblepy {
  
  template<typename T>
  inline void set_dict(PyObject* dict, const char* key, const T& val)
  {
      auto pyval = to_python(val);
      if (PyDict_SetItemString(dict, key, pyval))
          throw PythonException();
  }
  
  inline void set_dict(PyObject* dict, const char* key, PyObject* val)
  {
      if (PyDict_SetItemString(dict, key, val))
          throw PythonException();
  }
  
  inline void set_dict(PyObject* dict, const char* key, pyo_unique_ptr& val)
  {
      if (PyDict_SetItemString(dict, key, val))
          throw PythonException();
  }
  
  
  } // wobblepy
  
  #endif
  