Skip to content

Make namespace hygiene easier in cuda.core.__init__.py#1934

Merged
cpcloud merged 3 commits intoNVIDIA:mainfrom
mdboom:better-namespace-hygiene
Apr 17, 2026
Merged

Make namespace hygiene easier in cuda.core.__init__.py#1934
cpcloud merged 3 commits intoNVIDIA:mainfrom
mdboom:better-namespace-hygiene

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented Apr 16, 2026

Related to #1931 and auditing for unintentionally exposed symbols, doing this import magic inside of a function will make managing unexpected exposure a lot easier. Note we don't have to remember all of the variables to del anymore if we do it this way.

@mdboom mdboom self-assigned this Apr 16, 2026
@mdboom mdboom added enhancement Any code-related improvements cuda.core Everything related to the cuda.core module labels Apr 16, 2026
@mdboom mdboom added this to the cuda.core v1.0.0 milestone Apr 16, 2026
@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

Seems fine.

@cpcloud cpcloud enabled auto-merge (squash) April 17, 2026 14:15
@cpcloud cpcloud merged commit 9cee313 into NVIDIA:main Apr 17, 2026
90 checks passed
github-actions Bot pushed a commit that referenced this pull request Apr 18, 2026
Removed preview folders for the following PRs:
- PR #1593
- PR #1908
- PR #1923
- PR #1925
- PR #1933
- PR #1934
- PR #1938
- PR #1939
mdboom added a commit to mdboom/cuda-python that referenced this pull request Apr 20, 2026
* Make namespace hygiene easier in cuda.core.__init__.py

* Simplify further
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 enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants