#include "python.h"

namespace python {
#if 0
   Dict::Dict(const Dict & obj) {
      set( *obj );
   }

   Dict::Dict(PyObject * obj, bool owned) {
      set( obj, owned );
   }

   Dict & Dict::operator=(const Object & obj) {
      return (*this = *obj);
   }

   Dict & Dict::operator=(PyObject * obj) {
      if (ptr() != obj) {
         set( obj );
      }
      return *this;
   }

   bool Dict::accepts(PyObject * obj) const { 
      return ( obj != NULL ) and PyDict_Check( obj ); 
   }


   Object Dict::get_item(string item) { 
      PyObject * tmp =  PyDict_GetItemString( ptr(), const_cast<char *>(item.c_str() ) );
      check_errors();
      PyErr_Print();
      return Object (tmp); 
   }
#endif
}


syntax highlighted by Code2HTML, v. 0.9.1