8000 MAINT: Correctly handle empty lists in zip unpacking in mplot3d.art3d by rth · Pull Request #12927 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

MAINT: Correctly handle empty lists in zip unpacking in mplot3d.art3d #12927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 10, 2018

Conversation

rth
Copy link
Contributor
@rth rth commented Dec 3, 2018

This fixes a possible bug introduced in my earlier PR #12883, detected by @WeatherGod in #12883 (review), where zip unpacking didn't correctly handle the case of empty lists.

It makes sense to add this specialized path in this case (with respect to the previous version), as zip unpacking is much faster, and those are performance sensitive parts of the code, as identified in #11577

@jklymak
Copy link
Member
jklymak commented Dec 3, 2018

Can we add a test so this would have failed the first PR?

@tacaswell
Copy link
Member

A test would be good, but if producing this state is too contrived I am fine with this going in without a test (it is not worse that it was!).

@timhoffm
Copy link
Member
timhoffm commented Dec 9, 2018

@rth I took the liberty of pushing the requested test to your branch. I hope that's ok.

@rth
Copy link
Contributor Author
rth commented Dec 9, 2018

Thanks, @timhoffm , I appreciate it. I was indeed not sure how to write that test.

@timhoffm
Copy link
Member
timhoffm commented Dec 9, 2018

Ready to merge. (Not doing it myself yet in case somebody wants to check my test.)

@QuLogic QuLogic merged commit 48f8cb9 into matplotlib:master Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0