Data
PortedObjectData(*, metadata, object_data)
Bases: dict
A dictionary holding the information defining a PortedObject instance.
PARAMETER | DESCRIPTION |
---|---|
metadata
|
dictionary storing ported object identifiers including
TYPE:
|
object_data
|
dictionary to be passed to ported object constructor
TYPE:
|
Source code in psymple/build/ported_objects.py
to_ported_object(parsing_locals={})
Builds a PortedObject
instance from self.
The type of PortedObject
is read from self.type
and must be one of "fpo"
, "vpo"
or "cpo"
.
PARAMETER | DESCRIPTION |
---|---|
parsing_locals
|
a dictionary mapping strings to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
PortedObject
|
An instance of (or subclass of)
TYPE:
|