This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
float() does not work with byte strings #147
Open
Description
Hi
Seems like float does not work wity byte strings.
Working:
>>>int(b'10')
>>>10
Not working:
>>>float(b'10.1')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert bytes to float
Working:
>>>float(b'10.1'.decode())
>>>10.1
(sysname='GPy', nodename='GPy', release='1.16.0.b1', version='v1.8.6-849-055728a on 2018-02-13', machine='GPy with ESP32')