Skip to content

Conversation

@ozzy-simpson
Copy link

Changes:

  • Replaced all occurrences of xrange() with range() in lsm9ds1.py

Motivation:

Python 3 removed xrange(), which causes compatibility issues. Since range() in Python 3 behaves similarly to xrange() in Python 2 (returning a lazy sequence), this change ensures that the code runs correctly in Python 3 without impacting functionality.

This update replaces `xrange()` with `range()` to ensure compatibility with Python 3. Since `xrange()` was removed in Python 3, this change prevents runtime errors and aligns the codebase with modern Python versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant