Skip to content

Conversation

@eellison
Copy link
Contributor

add string comparisons

@eellison eellison requested a review from driazati May 21, 2019 17:21
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label May 21, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@eellison has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

# type: (str, str) -> Tuple[bool, bool, bool, bool, bool, bool]
return a != b, a == b, a < b, a > b, a <= b, a >= b

self.checkScript(test, ("1", "2"))
Copy link
Member

Choose a reason for hiding this comment

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

will this match python's string comparison semantics? Can we try some more complicated comparisons just to make sure it's consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lexicographic ordering is the same between c++ & python

@facebook-github-bot
Copy link
Contributor

@eellison merged this pull request in 47dc65f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants