cambridgehackers / connectal

Connectal is a framework for software-driven hardware development.
MIT License
161 stars 46 forks source link

Python 3 support #178

Closed CyanoKobalamyne closed 3 years ago

CyanoKobalamyne commented 3 years ago

Is there any intention to add Python 3 support, given that Python 2 has been deprecated? The main scripts run with just changing x.has_key(y) to y in x, but there are some other things in scripts I don't personally use (some remaining print statements, cStringIO imports, implicit relative imports, xrange, etc.).

jameyhicks commented 3 years ago

Yes, I would like to switch it all over to python3, but I have not had much time to work on it recently.

CyanoKobalamyne commented 3 years ago

I made an attempt in #179. It is not quite converting the code to Python 3 but at least making it compatible with the changes in 3.0.

jameyhicks commented 3 years ago

Thank you for the PRs fixing this issue.

Going forward, I think it would be OK to require python3 and drop support for python2.

CyanoKobalamyne commented 3 years ago

Makes sense. I guess I wasn't sure how many people were using Connectal with Python 2.