How to convert a negative number stored as string to a float?
Am getting this error on Python 3.6 and don't know how to get over it.
>>> s = '–1123.04'
>>> float(s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: '–1123.04'


unicodedatamodule to get the name of each char in string that's behaving mysteriously. Eg, if the string issdoimport unicodedata as udprint(*map(ud.name, s), sep=', '). See the module docs for more nifty functions. And of course you can doprint(s.encode('unicode-escape'))