pyoptools.misc.plist package

Module contents

class pyoptools.misc.plist.plist

Bases: pyoptools.misc.picklable.picklable.Picklable

Class used to define a part list. o in

It is based on the dict interface.

Each item must have a form (O,P,D), where O is an object, P is a position vector (array, tuple or list), and D is a direction vector (array,tuple,list).

This class is based on the dict interface, to be able to use string keys instead of just numbers. It does not inherit from dict, because of cython limitation in multiple inheritance.

append()

Append an instance in a similar way as they are append in a list.

The key is auto generated

clear()
items()
iter()
iteritems()
iterkeys()
itervalues()
keys()
pop()
popitem()
setdefault()
update()
values()
viewitems()
viewkeys()
viewvalues()