Do you teach? Do you Python?
The deadline to submit your talk proposal to speak at the Python Education
Summit is on January 3rd. More details on the submission process here:
We can't wait to hear what works (and what doesn't) in teaching Python,
whether you teach in a classroom or teach through the written word.
Join us for an awesome day full of Python AND Education with educators from
around the world @ the annual Pycon Conference.
Chalmer | Jessica | Meenal | Ria
Chalmer Lowe, MS
Dark Art of Coding
Booz Allen Hamilton
I'm working on a resource which reads weather data, and I'm using this code
to read data from a BMP180 barometric pressure sensor.
The code in the file bmpBackend_py3.py (and the Adafruit I2c/bmp085 files)
was originally in Python 2 and I converted it using 2to3. However this has
resulted in the bit shifts not working any more in the readPressure()
This code works in Python 2 but I need the resource to be in Python 3. I've
included the Python 2 bmpBackend file too for comparison in case the tool
has changed something odd.
I predict the problem is to do with the redefinition of the / operator from
2 to 3, but I don't know enough about bit shifting to figure out what to do
to resolve it.
Would anyone be able to help me to get this working? :)