jweinst1
2/12/2017 - 7:31 PM

example.java

public class Main {
    public static void main(String[] args){
        PyObject f = new PyList<>();
        PyObject a = new PyString("hello");
        System.out.println(f.pyType());
        System.out.println(a.pyType());
        a = f;
        System.out.println(a.pyType());
        PyObject[] items = new PyObject[10];
        items[0] = a;
        System.out.println(items[0].pyType());
    }
}