padelt/temper-python

Python 3.x support?

willfurnass opened this issue · 2 comments

A few things that need to be handled differently in Python 3.x:

  • temper.py features long hex literals like 0x0c45L. Python 3 does not have longs (not needed as ints are arbitrary precision).
  • do COMMANDS need to be byte strings?
  • the part of TemperDevice.get_temperature that interprets device responses may need to change
  • ranges are generator expressions so in some cases need to be explicitly converted to lists
  • possibly other things

See PR #46

Thanks @willfurnass for the work. I added some metadata to setup.py and bumped the PyPI version to indicate the new Python 3 support. Remember to please send a PR for the contributor line in README.md if you want.