Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Hello Yaroslav. What you've observed was a intentional change to make islice() behave more like regular slices. Neither of those accept floats which are precarious to use for indexing. A workaround is to replace 1e+6 with 10**6. ---------- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38801> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com