Java Code Examples for org.python.core.PyReflectedFunction

The following examples show how to use org.python.core.PyReflectedFunction. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: MeteoInfo   Source File: JIntrospect.java    License: GNU Lesser General Public License v3.0 5 votes vote down vote up
private boolean ispython(Object object){
    if (object instanceof Class)
        return false;
    else if (object instanceof Object)
        return false;
    else if (object instanceof PyReflectedFunction)
        return false;
    else
        return true;
}
 
Example 2
Source Project: MeteoInfo   Source File: JIntrospect.java    License: GNU Lesser General Public License v3.0 5 votes vote down vote up
private boolean ispython(Object object){
    if (object instanceof Class)
        return false;
    else if (object instanceof Object)
        return false;
    else if (object instanceof PyReflectedFunction)
        return false;
    else
        return true;
}
 
Example 3
Source Project: score   Source File: PythonExecutor.java    License: Apache License 2.0 5 votes vote down vote up
private boolean keyIsExcluded(String key, PyObject value) {
    return (key.startsWith("__") && key.endsWith("__")) ||
            value instanceof PyFile ||
            value instanceof PyModule ||
            value instanceof PyFunction ||
            value instanceof PySystemState ||
            value instanceof PyClass ||
            value instanceof PyType ||
            value instanceof PyReflectedFunction;
}