[issue31097] itertools.islice not accepting np.int64

2017-08-01 Thread LB
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/is

[issue31097] itertools.islice not accepting np.int64

2017-08-01 Thread LB
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 issu

[issue31097] itertools.islice not accepting np.int64

2017-08-01 Thread LB
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