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 belopolsky
Recipients belopolsky, benjamin.peterson, gregory.p.smith, pitrou, rbp, rhettinger
Date 2008-05-11.22:48:21
SpamBayes Score 0.23400341
Marked as misclassified No
Message-id <d38f5330805111548p6943964bmd10a74d0787ddcc7@mail.gmail.com>
In-reply-to <1210545521.86.0.0663780818266.issue2723@psf.upfronthosting.co.za>
Content
On Sun, May 11, 2008 at 6:38 PM, Gregory P. Smith
<report@bugs.python.org> wrote:
..
> But I must've missed something, why can't __len__ return the correct
> value?

The problem is the C signature of the sq_length slot:

typedef Py_ssize_t (*lenfunc)(PyObject *);
History
Date User Action Args
2008-05-11 22:48:23belopolskysetspambayes_score: 0.234003 -> 0.23400341
recipients: + belopolsky, rhettinger, gregory.p.smith, pitrou, benjamin.peterson, rbp
2008-05-11 22:48:22belopolskylinkissue2723 messages
2008-05-11 22:48:21belopolskycreate