Skip to content

Conversation

@cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Nov 17, 2025

Redo of #1224 without breaking changes.

@cpcloud cpcloud requested review from leofang and mdboom November 17, 2025 19:15
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Nov 17, 2025

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cpcloud
Copy link
Contributor Author

cpcloud commented Nov 17, 2025

/ok to test

@cpcloud
Copy link
Contributor Author

cpcloud commented Nov 17, 2025

/ok to test

@github-actions
Copy link

Comment on lines +107 to +110
warnings.warn(
f"Constructing a {clsname} directly from a DLPack-supporting object is deprecated; "
"Use `StridedMemoryView.from_dlpack` or `StridedMemoryView.from_any_interface` instead."
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this a FutureWarning (https://docs.python.org/3/library/exceptions.html#FutureWarning) or whatever warning type is most appropriate for this deprecation?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the one we want is DeprecationWarning. Those are usually off by default, but tools like pytest will collect and display them at the end, so they get shown to developers using the library during their development rather than to "end users". FutureWarning is always on, so is meant for non-developers to see. (Think of like a data processing script that will require the user to change the format of their data in the future...) Fuzzy boundaries between those, of course.

@leofang leofang added this to the cuda.core beta 10 milestone Nov 18, 2025
@leofang leofang added P0 High priority - Must do! feature New feature or request cuda.core Everything related to the cuda.core module labels Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.core Everything related to the cuda.core module feature New feature or request P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants