← 输入框|github.com|刷新
Skip to content

Implements __str__ and __hash__ - #75

Merged
s-celles merged 3 commits into
python-semver:masterfrom
s-celles:str_hash
May 15, 2018
Merged

s-celles merged 3 commits into
python-semver:masterfrom
s-celles:str_hash

Conversation

@s-celles

Copy link
Copy Markdown
Member

Closes #72, #73
Should help #74

@s-celles

Copy link
Copy Markdown
Member Author

Thanks to @smarie for a part of this code

@k-bx

k-bx commented May 13, 2018

Copy link
Copy Markdown
Contributor

@scls19fr hey, would you like to become a co-maintainer of the package? I don't think I have time maintaining the low-priority things like this one. If yes, please send me your PYPI username as well.

@s-celles s-celles changed the title Implements __str__ and __hash__ (WIP) Implements __str__ and __hash__ May 13, 2018
@s-celles s-celles changed the title (WIP) Implements __str__ and __hash__ Implements __str__ and __hash__ May 15, 2018
@ppkt

ppkt commented May 15, 2018

Copy link
Copy Markdown
Member

@scls19fr I think we can just use format_version function in __str__:

    def __str__(self):
        return format_version(*self)

@s-celles

Copy link
Copy Markdown
Member Author

Good catch @ppkt !

@s-celles
s-celles merged commit 3dfd54f into python-semver:master May 15, 2018
@s-celles
s-celles deleted the str_hash branch May 16, 2018 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants