Skip to content

Conversation

@elprans
Copy link
Member

@elprans elprans commented Mar 4, 2018

Make the array input type check for correct ABCs instead of producing a
cryptic error when a non-iterable container is passed.

@elprans elprans requested a review from 1st1 March 4, 2018 03:34
@elprans elprans self-assigned this Mar 4, 2018
return False

with self.assertRaisesRegex(TypeError,
'non-trivial iterable expected'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "non-trivial iterable" -> "sized iterable container"?

Make the array input type check for correct ABCs instead of producing a cryptic error when a non-iterable container is passed.
@elprans elprans force-pushed the only-allow-sized-iterables-for-array-input branch from b91d222 to 5886325 Compare March 7, 2018 00:41
@elprans elprans merged commit a2fa7b2 into master Mar 7, 2018
@elprans elprans deleted the only-allow-sized-iterables-for-array-input branch March 7, 2018 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants