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

short circuit before the version_compare call #7705

Merged
merged 1 commit into from Sep 28, 2018

Conversation

lamont-granquist
Copy link
Contributor

combined with the other PRs this will make most of the
subclasses never even call version_compare now.

the subclasses that need allow_downgrade as a feature
should implement both the property and implement
version_compare now.

combined with the other PRs this will make most of the
subclasses never even call version_compare now.

the subclasses that need allow_downgrade as a feature
should implement both the property and implement
version_compare now.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
@lamont-granquist lamont-granquist requested a review from a team September 28, 2018 06:10
@lamont-granquist
Copy link
Contributor Author

lamont-granquist commented Sep 28, 2018

it is possible now that version_compare in the superclass won't ever be called and we could raise an error that it must be implemented now...

IDK I feel that aggressive tonight though.

Copy link
Contributor

@tas50 tas50 left a comment

Choose a reason for hiding this comment

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

Seems logical to avoid doing the hard work if we don't have to.

@lock
Copy link

lock bot commented Nov 27, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants