Skip to content

pybind: Drop get_ prefix from S2CellId and S2LatLng method names#632

Open
deustis wants to merge 1 commit into
google:masterfrom
deustis:deustis/drop_get_prefix
Open

pybind: Drop get_ prefix from S2CellId and S2LatLng method names#632
deustis wants to merge 1 commit into
google:masterfrom
deustis:deustis/drop_get_prefix

Conversation

@deustis
Copy link
Copy Markdown
Contributor

@deustis deustis commented May 29, 2026

Summary

Renames Python binding methods whose C++ names begin with Get, following the convention that the Get prefix is dropped in Python.

S2CellId: size_ij, size_ij_for_level, size_st, size_st_for_level, center_st, bound_st, center_uv, bound_uv, common_ancestor_level, edge_neighbors, vertex_neighbors, all_neighbors

S2LatLng: distance

Test Plan

bazel test //python/...

Renames all Python methods whose C++ counterparts begin with Get:
s2cell_id: size_ij, size_ij_for_level, size_st, size_st_for_level,
center_st, bound_st, center_uv, bound_uv, common_ancestor_level,
edge_neighbors, vertex_neighbors, all_neighbors.
s2latlng: distance.
@deustis deustis marked this pull request as ready for review May 29, 2026 19:33
@deustis
Copy link
Copy Markdown
Contributor Author

deustis commented May 29, 2026

@jmr, broke out a separate PR for the other classes to address your comment here:
#631 (comment)

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