Top Description Fields Constructors Methods
org.python.core

public Class PyMapping

extends PySequence
Class Inheritance
Imports
java.util.Map, org.python.base.MissingFeature

Abstract API for operations on mapping types, corresponding to CPython methods defined in abstract.h and with names like: PyMapping_*.

Field Summary

Inherited from org.python.core.PySequence:
DOES_NOT_SUPPORT_ITEMHAS_NO_LEN

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv static Map<Object, Object>

Returns:

the map
map
(Object
to present as a map
o
)

Return the mapping object o as a Java Map.

Inherited from org.python.core.PySequence:
concatdelItemfastListgetItemgetSlicerepeatsetItemsize

Constructor Detail

PyMappingback to summary
protected PyMapping()

Method Detail

mapback to summary
pack-priv static Map<Object, Object> map(Object o)

Return the mapping object o as a Java Map. If o is one of several built-in types that implement Java Map<Object, Object>, this will be the object itself. Otherwise, it will be an adapter on the provided object.

Parameters
o:Object

to present as a map

Returns:Map<Object, Object>

the map