Skip to content

Conversation

@chaokunyang
Copy link
Collaborator

@chaokunyang chaokunyang commented Jan 27, 2026

Why?

Buffer index access is currently exposed as Python properties. This change standardizes access through explicit getters/setters to make call sites uniform across Cython and Python and avoid property usage.

What does this PR do?

  • Add get_reader_index/set_reader_index and get_writer_index/set_writer_index on Buffer.
  • Replace reader_index/writer_index property usage across Python and Cython code paths.
  • Update Python tests and helpers to use the new accessors.

Related issues

None.

Does this PR introduce any user-facing change?

Yes. Python Buffer index access now uses explicit get/set methods instead of properties.

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

Not run (not requested).

@chaokunyang chaokunyang merged commit 297b7b2 into apache:main Jan 27, 2026
64 checks passed
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.

2 participants