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

src.org.python.modules.Setup 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.

There is a newer version: 2.7.4
Show newest version
// Copyright (c) Corporation for National Research Initiatives
package org.python.modules;

import org.python.modules.posix.PosixModule;

// This is sort of analogous to CPython's Modules/Setup file.  Use this to
// specify additional builtin modules.

public class Setup
{
    // Each element of this array is a string naming a builtin module to
    // add to the system.  The string has the following allowable forms:
    //
    // name
    //     The module name is `name' and the class name is
    //     org.python.modules.name
    //
    // name:class
    //     The module name is `name' and the class name is `class' where
    //     class must be a fully qualified Java class name
    //
    // name:null
    //     The module `name' is removed from the list of builtin modules
    //
    // That isn't very useful here, but you can add additional builtin
    // modules by editing the Jython registry file.  See the property
    // python.modules.builtin for details.

    public static String[] builtinModules = {
        "jarray",
        "math",
        "thread:org.python.modules.thread.thread",
        "operator",
        "time:org.python.modules.time.Time",
        "_py_compile",
        "_sre",
        "synchronize",
        "cPickle",
        "cStringIO",
        "struct",
        "binascii",
        "exceptions:org.python.core.exceptions",
        "_codecs",
        "imp",
        "ucnhash",
        "_weakref:org.python.modules._weakref.WeakrefModule",
        "errno",
        "array:org.python.modules.ArrayModule",
        "_random:org.python.modules.random.RandomModule",
        "cmath",
        "itertools",
        "zipimport:org.python.modules.zipimport.zipimport",
        "_collections:org.python.modules._collections.Collections",
        "gc",
        "_hashlib",
        "_functools:org.python.modules._functools._functools",
        "_csv:org.python.modules._csv._csv",
        "_systemrestart",
        "_ast:org.python.antlr.ast.AstModule",
        "_marshal",
        "_threading:org.python.modules._threading._threading",
        PosixModule.getOSName() + ":org.python.modules.posix.PosixModule",
        "jffi:org.python.modules.jffi.jffi"
    };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy