Skip to content

Instantly share code, notes, and snippets.

@arpitbbhayani
Created January 2, 2020 19:30
Show Gist options
  • Save arpitbbhayani/e7cb860adf0e71c4b85afd8ff7748556 to your computer and use it in GitHub Desktop.
Save arpitbbhayani/e7cb860adf0e71c4b85afd8ff7748556 to your computer and use it in GitHub Desktop.
Checking if both the python objects (operands) are numbers.
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