The result of the 'isnumeric' function on a Python string is true because the Python version of 'isnumeric' has been executed instead of MATLAB 'isnumeric' function.
In MATLAB, 'isnumeric' is used to determine if a variable is a numeric array:
>> help isnumeric
...
false otherwise.
For example, integer and float (single and double) arrays are considered numeric, while logicals, strings, cell arrays, and structure arrays are not.
The Python string class in Python 3.X also has a method called 'isnumeric'. It will return true if a string contains only numeric characters. Below is a Python 3.3 example to be executed in a Python IDE:
>>> s = str('1')
>>> s.isnumeric()
True
>>>
>>> help(str.isnumeric)
...
False otherwise.
Thus if a variable 'x' is of class 'py.str', then calling 'x.isnumeric' and 'isnumeric(x)' are equivalent and will execute the Python version of 'isnumeric'.
When working with Python variables in MATLAB, a method or function name can appear in both languages but have slightly different meanings. It is important to note that MATLAB will look for a method before looking for a function, according to function precedence order. For more details about function precedence order, please refer to the link below:
https://www.mathworks.com/help/matlab/matlab_prog/function-precedence-order.html