Created
January 2, 2020 19:30
-
-
Save arpitbbhayani/e7cb860adf0e71c4b85afd8ff7748556 to your computer and use it in GitHub Desktop.
Checking if both the python objects (operands) are numbers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (PyNumber_Check(left) && PyNumber_Check(right)) { | |
// Both the operands are numbers | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment