
src.org.python.modules._collections.Collections Maven / Gradle / Ivy
package org.python.modules._collections;
import org.python.core.ClassDictInit;
import org.python.core.PyObject;
/**
* Collections - This module adds the ability to use high performance data
* structures.
* - deque: ordered collection accessible from endpoints only
* - defaultdict: dict subclass with a default value factory
*/
public class Collections implements ClassDictInit {
public static void classDictInit(PyObject dict) {
dict.__setitem__("deque", PyDeque.TYPE);
dict.__setitem__("defaultdict", PyDefaultDict.TYPE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy