minor enum_ improvement (use __repr__ instead of __str__)
diff --git a/include/pybind/pybind.h b/include/pybind/pybind.h
index 57009e6..9e707c1 100644
--- a/include/pybind/pybind.h
+++ b/include/pybind/pybind.h
@@ -813,7 +813,7 @@
     enum_(object &scope, const char *name, const char *doc = nullptr)
       : class_<Type>(scope, name, doc), m_parent(scope) {
         auto entries = new std::unordered_map<int, const char *>();
-        this->def("__str__", [name, entries](Type value) -> std::string {
+        this->def("__repr__", [name, entries](Type value) -> std::string {
             auto it = entries->find((int) value);
             return std::string(name) + "." +
                 ((it == entries->end()) ? std::string("???")