All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.python.core.PyBuiltinFunction Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

The newest version!
package org.python.core;

import org.python.expose.ExposeAsSuperclass;

@Untraversable
public class PyBuiltinFunction extends PyBuiltinCallable implements ExposeAsSuperclass {

    protected PyBuiltinFunction(String name, String doc) {
        this(name, -1, -1, doc);
    }

    protected PyBuiltinFunction(String name, int minargs, int maxargs, String doc) {
        super(new DefaultInfo(name, minargs, maxargs));
        this.doc = doc == null ? null : doc;
    }

    public boolean isMappingType() {
        return false;
    }

    public boolean isNumberType() {
        return false;
    }

    public boolean isSequenceType() {
        return false;
    }

    public PyBuiltinCallable bind(PyObject self) {
        throw Py.TypeError("Can't bind a builtin function");
    }

    public String toString() {
        return "";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy