Skip to content

Allow inequalities with newstr and newbytes. #274

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 1 commit into from
Oct 15, 2018
Merged

Allow inequalities with newstr and newbytes. #274

merged 1 commit into from
Oct 15, 2018

Conversation

azmeuk
Copy link
Contributor

@azmeuk azmeuk commented Mar 7, 2017

This PR applies the same checks for newstr and newbytes inequality operators, than for equality operators. It also avoids to use the isbytes and istext deprecated functions.

It allows to write codes like "" < str(""), that is valid in python 2 and python 3, but not if str is imported with from builtins import str.

It fixes #154

@azmeuk azmeuk changed the title Allow inequalities with newstr and newbytes. Fixes #154 Allow inequalities with newstr and newbytes. Mar 7, 2017
@azmeuk
Copy link
Contributor Author

azmeuk commented Aug 8, 2017

@edschofield What do you think of this PR? Is there something I can do to help you merge it?

@jmadler jmadler merged commit e53e849 into PythonCharmers:develop Oct 15, 2018
@jmadler
Copy link
Contributor

jmadler commented Oct 15, 2018

This looks good, thanks!

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.

2 participants