tatobari / hx711py

HX711 Python Library for Raspberry Pi.
Apache License 2.0
206 stars 154 forks source link

Python3 support #26

Closed JuM1697 closed 4 years ago

JuM1697 commented 4 years ago

Hi,

I really like your Code! Thanks a lot for your work! Anyway, I started a small project and tried to use your code with Python3 which didn't work due to some datatype and syntax changes from Python2 to Python3. The function long() works only with type str in the brackets in Python3. Plus, all integers now have unlimited precision which made me use int() instead of long(). print requires brackets in Python3 also. Which means: print str had to be changed to print(str).

If you have any more ideas how to improve the Code for Python 3 I'd really appreciate it!

Thanks a lot again for your work.

Cheers!

tatobari commented 4 years ago

Love it, thanks!