Reimplement zip_broadcast() to fix #561#565
Conversation
|
While trying to get the tests to pass, I ran into a small complexity regarding what kind of exception to raise if the iterables don't match lengths. As mentioned above, the implementation delegates to I decided to handle this by updating the documentation to state that I think this approach is consistent with the idea of phasing out |
|
Thanks for the PR. I merged a combination of your version and mine that passes tests. I also worked around the deprecation warning such that 3.10 can raise |
Issue reference
Fixes #561
Changes
This implementation delegates the
strict=Truechecks tozip_equal(), rather than making those checks itself. This avoids the need to account for howzip()consumes items.