Skip to content
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

Rearranged code #108

Closed
wants to merge 1 commit into from
Closed

Conversation

radarhere
Copy link

Suggestion for python-pillow#7597

return [white * i // 255 for i in range(256)]
if black != 0:
msg = "unavailable when black is non-zero"
raise NotImplementedError(msg) # FIXME
Copy link
Author

Choose a reason for hiding this comment

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

Given the error message "unavailable when black is non-zero", this seems more natural to me.

Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, I prefer the original, try the success case first.

@radarhere radarhere closed this Dec 4, 2023
@radarhere radarhere deleted the comprehensions branch December 4, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants