schrodinger.infra.mmlist module

A wrapper for the mmlist mmlib.

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.infra.mmlist.mmlist(handle_or_list, manage_handle=True)

Bases: schrodinger.infra.mmobject.MmObject

Wrap an anderlying mmlist “instance” and provides access to its members through the python sequence syntax.

__init__(handle_or_list, manage_handle=True)

Initialize an object with an existing mmlist handle or python list of ints.

static initialize(error_handler=None)

Initialize mmlist.

static terminate()

Terminate mmlist.

__len__()

Return the number of elements in the mmlist.

__contains__(value)

Returns True if the list contains the specified value, False otherwise