Message66130
On Fri, May 2, 2008 at 5:46 PM, Guido van Rossum <report@bugs.python.org> wrote:
>
> Guido van Rossum <guido@python.org> added the comment:
>
> We need to look at more details why those fail. Perhaps there's one
> common place where this is used? Did you add __length_hint__ yet?
I added __length_hint__ in the last patch.
Many of the failures are the result of failings in seq_tests.py.
As test_random points out, you can't pick a random integer from a set.
Some of these failures are also the result of removing range slicing.
(I'm not proposing we bring that back, though.)
Overall though, I think it's more practical to have a length
implementation that works in 99.78% cases than not and force people to
to convert it to a list first. |
|
| Date |
User |
Action |
Args |
| 2008-05-02 23:11:57 | benjamin.peterson | set | spambayes_score: 0.00225476 -> 0.00225476 recipients:
+ benjamin.peterson, gvanrossum, tjreedy, facundobatista, belopolsky |
| 2008-05-02 23:11:55 | benjamin.peterson | link | issue2735 messages |
| 2008-05-02 23:11:55 | benjamin.peterson | create | |
|