dimod.variables.Variables._pop#

Variables._pop()[source]#

Remove the last variable.

Returns:

The removed variable.

Return type:

Variable

Raises:

IndexError – If the container is empty.

Caution

This method is semi-public. It is intended to be used by classes that have Variables as an attribute, not by the the user.