This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry-scott
Recipients barry-scott
Date 2008-09-04.20:49:16
SpamBayes Score 6.6407275e-09
Marked as misclassified No
Message-id <1220561357.57.0.619578409655.issue3777@psf.upfronthosting.co.za>
In-reply-to
Content
I am testing PySVN against python2.6b3.

I see a failure when PyNumber_Long is called with a Float.
It raises TypeError.

The same code works on 2.3, 2.4 and 2.5.

Looking with GDB I see:

(gdb) bt
#0  PyNumber_Long (o=0x1809384) at Objects/abstract.c:1735
#1  0x020f8e70 in Py::Long::Long (this=0xbfffefc8, ob=@0xbfffefc0) at
pysvn_client_cmd_list.cpp:739

1681            m = o->ob_type->tp_as_number;
1682            if (m && m->nb_long) { /* This should include subclasses
of long */
1683                    /* Classic classes always take this branch. */
1684                    PyObject *res = m->nb_long(o);
1685                    if (res && (!PyInt_Check(res) &&
!PyLong_Check(res))) {

res does not contain the value that nb_long(o) calculated.
and the if on 1685 is false so you get a type error.

I have compiled on Mac OS X 10.4 powerpc and fedora 8 x86.
Both fail in the exact same way.

If you need to reproduce you will need to build pysvn and
run a command that triggers the problem. I don't have a
smaller example.
History
Date User Action Args
2008-09-04 20:49:17barry-scottsetrecipients: + barry-scott
2008-09-04 20:49:17barry-scottsetmessageid: <1220561357.57.0.619578409655.issue3777@psf.upfronthosting.co.za>
2008-09-04 20:49:16barry-scottlinkissue3777 messages
2008-09-04 20:49:16barry-scottcreate