STINNER Victor added the comment: > Could we use the xrange() object for testing?
xrange() constructor is implemented in C and looks to use C long for parameters. This issue is specific to 64-bit Windows with 32-bit C long, so xrange() doesn't seem to work here. > Or weakref? What do you mean? Which object? weakref.ref() has no length. > Using a bigmem test for this issue looks excessive. Well, I was too lazy to develop a C extension (add something to _testcapi) just for this tiny bug. I also like tests really testing the final feature (the bug reported in this issue). I failed to find an existing Python object with __len__() implemented in C which doesn't need to allocate 2^31 bytes to test this bug. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26423> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com