KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > python > modules > sets > Sets


1
2 package org.python.modules.sets;
3
4 import org.python.core.ClassDictInit;
5 import org.python.core.Py;
6 import org.python.core.PyObject;
7
8 public class Sets implements ClassDictInit {
9     private Sets() {}
10
11     public static void classDictInit(PyObject dict) {
12         dict.__setitem__("Set", Py.java2py(PySet.class));
13         dict.__setitem__("ImmutableSet", Py.java2py(PyImmutableSet.class));
14     }
15 }
16
Popular Tags