Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Thanks for the patch! You can avoid the compiler warning by casting to reprfunc like this:
(reprfunc)range_str /* tp_str */ Also, some of the whitespace needs reformating. Please put a space between the parameters passed a function, and remove the ones in the conditionals. You should use PyObject_RichCompareBool. All the calls to functions like PyLong_FromLong and PyNumber_* can possibly return NULL on error, so you must check for that. Sometimes it's useful to have a goto for failures at the end of your function in which you Py_XDECREF everything. Could you take the space from the "<" and ">" at the end of the representation? ---------- nosy: +benjamin.peterson __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2610> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com