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

isValid(version) for public API #2

MaliusArth opened this issue Mar 19, 2013 · 2 comments


Copy link

commented Mar 19, 2013

catching the ValueError of, let's say Version('we12we.12we.23'), doesn't seem to be very performant
so maybe you could add a similar implementation of the following code to the public API?

def isValid(version):
    except ValueError:
        return False
    return True

@rbarrois rbarrois closed this in a9dae49 Mar 21, 2013


This comment has been minimized.

Copy link

commented Oct 25, 2013

@rbarrois I have a problem using semantic_version.validate. I can only use it as semantic_version.base.validate, I believe it should be imported in .


This comment has been minimized.

Copy link

commented Oct 29, 2013

@matemaciek Thanks for the report, it's now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.