Done, http://bugs.python.org/issue5175
On Fri, Feb 6, 2009 at 6:25 PM, Mark Dickinson <dicki...@gmail.com> wrote: > On Fri, Feb 6, 2009 at 9:04 PM, Lisandro Dalcin <dalc...@gmail.com> wrote: >> At Objects/longobject.c, you should see that in almost all cases >> OverflowError is raised when a unsigned integral is requested from a >> negative PyLong. However, See this one: >> [...] >> if (!is_signed) { >> PyErr_SetString(PyExc_TypeError, >> "can't convert negative long to unsigned"); >> return -1; >> } > > I agree that TypeError seems wrong here. > > Please could you file a bug report at bugs.python.org? > > Mark > -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com