Skip to content

Conversation

@proshian
Copy link

The ndarray.tostring() method was deprecated in NumPy 1.19.0 and completely removed in NumPy 2.3. Since tobytes() has been the recommended replacement since 1.9.0 (with identical functionality), this change ensures compatibility with newer NumPy versions.

The change:

  • Maintains the exact same behavior
  • Future-proofs the code against NumPy ≥2.3

The `ndarray.tostring()` method was deprecated in NumPy 1.19.0 and
completely removed in NumPy 2.3. Since `tobytes()` has been the
recommended replacement since 1.9.0 (with identical functionality),
this change ensures compatibility with newer NumPy versions.

The change:
- Maintains the exact same behavior
- Future-proofs the code against NumPy ≥2.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