Skip to content

Conversation

@simin75simin
Copy link

Major Changes:

  • Fixed Python 2 to 3 compatibility issues across all modules
  • Removed obsolete True/False assignments in splines.py
  • Replaced cmp with rich comparison methods (lt, eq, etc.)
  • Added truediv for Python 3 division
  • Added bool alongside nonzero
  • Fixed invalid regex escape sequences (added raw strings)
  • Fixed bytes vs string handling in graphics.py
  • Fixed tab/space indentation inconsistencies

Dependencies:

  • Added six for Python 2/3 compatibility
  • Added pillow for image processing
  • Updated .gitignore to exclude generated files and test outputs

Testing:

  • Added comprehensive test suite with 26 tests
  • Tests cover all command-line options and combinations
  • Module import tests verify all components load correctly
  • Unit tests for splines module functionality
  • Added test documentation in tests/README.md
  • Created convenient test runners (run_tests.bat, run_tests.sh)

All tests passing. Repository is now fully Python 3 compatible.

Major Changes:
- Fixed Python 2 to 3 compatibility issues across all modules
- Removed obsolete True/False assignments in splines.py
- Replaced __cmp__ with rich comparison methods (__lt__, __eq__, etc.)
- Added __truediv__ for Python 3 division
- Added __bool__ alongside __nonzero__
- Fixed invalid regex escape sequences (added raw strings)
- Fixed bytes vs string handling in graphics.py
- Fixed tab/space indentation inconsistencies

Dependencies:
- Added six for Python 2/3 compatibility
- Added pillow for image processing
- Updated .gitignore to exclude generated files and test outputs

Testing:
- Added comprehensive test suite with 26 tests
- Tests cover all command-line options and combinations
- Module import tests verify all components load correctly
- Unit tests for splines module functionality
- Added test documentation in tests/README.md
- Created convenient test runners (run_tests.bat, run_tests.sh)

All tests passing. Repository is now fully Python 3 compatible.
@simin75simin
Copy link
Author

I'm a dev who did this using cursor as a hobby. It seems it's all working in python 3.13. Feel free to use this fork to run it in python 3 ;)

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