Armin Rigo <[email protected]> added the comment: Found the reason: it's because set(iterable) first converts the iterable into a list. But the problem here is that the list is very long (5000*5000/2 items roughly), but contains a lot of duplicate items, so that the final set is only 5001 items long.
---------- nosy: +arigo status: unread -> chatting ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1522> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
