Skip to content

Assert with the PyStackRef_IsTaggedInt function #133476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nybblista opened this issue May 5, 2025 · 0 comments
Closed

Assert with the PyStackRef_IsTaggedInt function #133476

nybblista opened this issue May 5, 2025 · 0 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@nybblista
Copy link
Contributor

nybblista commented May 5, 2025

In the _PyStackRef_AsPyObjectBorrow, I think we should use the PyStackRef_IsTaggedInt rather than asserting the ref.index value directly from the function. However, the same thing applies to the PyStackRef_UntagInt function, which asserts the i.bits value rather than calling the PyStackRef_IsTaggedInt function.

Linked PRs

@nybblista nybblista changed the title Assert withPyStackRef_IsTaggedInt function Assert with the PyStackRef_IsTaggedInt function May 5, 2025
@picnixz picnixz added type-feature A feature request or enhancement interpreter-core (Objects, Python, Grammar, and Parser dirs) labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants