Tue, 15 Mar 2011 10:23:35 -0700, Matthew Brett wrote: [clip] > OK - I realize I'm being very lazy here but, do you mean: > > PyErr_Format(PyExc_ValueError, >>> "field named %s not found.", >>> PyString_AsString(PyObject_Repr(index))); > >> The PyString_AsString is present, as it's mapped on Py3 to >> PyBytes_AsString by "npy_3kcompat.h". > > Oh - dear - I think I felt a blood vessel pop somewhere in my brain :)
This was an "answer" to your question as I understood it: "PyString_AsString is no longer a part of the API on Python 3.x. So how come this code can work on Python 3 if it appears here?" Pauli _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion