Commits

sdm7g  committed fd71005

__version__ changed to PyString
(as float, it couldn't hold values like 0.6.1, and it printed
0.6 as 0.5999999999... )

  • Participants
  • Parent commits a8675f0

Comments (0)

Files changed (1)

File pyobjc/ObjC.m

   PyDict_SetItemString (d, "error", ObjC_Error);
 
   PyDict_SetItemString (d, "runtime", (PyObject *) ObjCRuntime_new());
-  PyDict_SetItemString (d, "__version__", PyFloat_FromDouble (PyObjC_VERSION));
+  PyDict_SetItemString (d, "__version__", PyString_FromString(PyObjC_VERSION));
 
   // Force the load of these classes/categories
   [OC_PythonBundle class];