literal_destringizer

literal_destringizer(rep)[source]

Convert a Python literal to the value it represents.

Parameters
repstring

A Python literal.

Returns
valueobject

The value of the Python literal.

Raises
ValueError

If rep is not a Python literal.