Convert a number enclosed in parentheses (string) to a negative integer (or float) using Python?
<p>In Python, what is the simplest way to convert a number enclosed in parentheses (string) to a negative integer (or float)?</p>

<p>For example, '(4,301)' to -4301, as commonly encountered in accounting applications.</p>
