Closed gnott closed 10 months ago
That's intentional, actually. The problem might be that after wrapping in iter(...)
it's difficult to find a type that now raises a TypeError
in which the fallback (someval[0]
) would then succeed.
Ah, ok, only the test coverage reported those lines were not triggered, I like the added safety.
eh, it works. go for it.
I like your reasoning instead, thanks for taking a look.
I noticed this, which seems to work, otherwise the
TypeError
exception is not raised when the argument is alist
.