Message66688
| 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 *); |
|