psychopy.org | Reference | Downloads | Github

Pr.py – Compatibility with Python 3.x

python3

#1

The PsychoPy interface for the PR-6xx spectrometers doesn’t work under Python 3 because of the way strings are cast etc. The below code, using insertions of .decode(), makes it work under 3. I’m not sure what the plans are regarding transition to Python 3.0 etc., so I didn’t issue at PR>

pr.py (18.9 KB)


#2

That’s great! I’m aware that hardware is where the PY3 compatibility is weaker and I’m keen to support PY3 wherever we can. Ideally I’d like to continue supporting Py2.7 as well for as long as possible with the same code base. If your changes work on both packages then a PR would be very much appreciated!