Skip to content

Allow inequalities with newstr and newbytes.#274

Merged
jmadler merged 1 commit into
PythonCharmers:developfrom
azmeuk:comparison
Oct 15, 2018
Merged

Allow inequalities with newstr and newbytes.#274
jmadler merged 1 commit into
PythonCharmers:developfrom
azmeuk:comparison

Conversation

@azmeuk

@azmeuk azmeuk commented Mar 7, 2017

Copy link
Copy Markdown
Contributor

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

azmeuk commented Aug 8, 2017

Copy link
Copy Markdown
Contributor Author

@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

jmadler commented Oct 15, 2018

Copy link
Copy Markdown
Contributor

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