[issue31097] itertools.islice not accepting np.int64
New submission from LB: The error arises when this code is used: itertools.islice( [3, 4, 5], np.int64(2) ) but not with this itertools.islice([3,4,5], 2) -- components: Library (Lib) messages: 299617 nosy: braaannigan priority: normal severity: normal status: open title: itertools.islice not accepting np.int64 type: crash versions: Python 3.6 ___ Python tracker <http://bugs.python.org/issue31097> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31097] itertools.islice not accepting np.int64
LB added the comment: Thanks Ray. The use case is here: https://stackoverflow.com/questions/45356718/saving-matplotlib-animation-leads-to-error/45438057#45438057 I'm going to suggest a workaround in matplotlib for the moment. Changing type in this use case shouldn't be a big issue, it only happens once for each animation created. -- ___ Python tracker <http://bugs.python.org/issue31097> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31097] itertools.islice not accepting np.int64
LB added the comment: Hi Mark - I've done that here: https://github.com/matplotlib/matplotlib/issues/8973 Liam -- ___ Python tracker <http://bugs.python.org/issue31097> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
