Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API supports both Python 2.7 and Python 3.2 #38

Open
npryce opened this issue Mar 1, 2013 · 2 comments
Open

API supports both Python 2.7 and Python 3.2 #38

npryce opened this issue Mar 1, 2013 · 2 comments

Comments

@npryce
Copy link
Contributor

npryce commented Mar 1, 2013

No description provided.

@dhuntley1023
Copy link

Is there something technically preventing operation of the API in Python 2.7 (i.e. certain Python features only avail in P3), or is this just a developer preference?

FWIW, I also think it'd be useful to remove the Python 3 dependency, and if it's just a case of needing a bit of work I might take it on and send you a pull... but I'd rather know ahead of time if the pull would be rejected on philosophical grounds.

(Nice lib by the way, was only way to get my Honeywell I2C Pressure Sensor working. SMbus didn't fill the bill)

@npryce
Copy link
Contributor Author

npryce commented May 9, 2014

Hi. I'm glad you found it useful.

We chose Python 3 because we were building our products at education and
for people who were learning programming for the first time. Python 3
removes a lot of historical cruft and wierdness from Python 2. E.g. Python
2 has two kinds of class system ("old" and "new" style classes) and some
things silently stop working if you accidentally write an old style class
by forgetting to make your class extend object. Python 3 has a single
class system. Also, Python 3 makes a clear distinction between buffers of
bytes and strings of (unicode) text, which makes writing I/O code that
interfaces with hardware less error prone.

But, the Quick2Wire libraries are no longer under active development by the
original team, so feel free to fork the library and make it do what you
want.

All the best,
--Nat

On 9 May 2014 07:33, David Huntley [email protected] wrote:

Is there something technically preventing operation of the API in Python
2.7 (i.e. certain Python features only avail in P3), or is this just a
developer preference?

FWIW, I also think it'd be useful to remove the Python 3 dependency, and
if it's just a case of needing a bit of work I might take it on and send
you a pull... but I'd rather know ahead of time if the pull would be
rejected on philosophical grounds.

(Nice lib by the way, was only way to get my Honeywell I2C Pressure Sensor
working. SMbus didn't fill the bill)


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-42637481
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants