Skip to content
Discussion options

You must be logged in to vote

Since the id is simply the object's memory address, you can use obj.as_ptr() from the AsPyPointer trait.

Otherwise, you can get at id (or other built-in functions) using py.eval("id", None, None).

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@LilyAcorn
Comment options

LilyAcorn Jan 16, 2023
Collaborator Author

@adamreichold
Comment options

@mejrs
Comment options

mejrs Jan 16, 2023
Collaborator

@LilyAcorn
Comment options

LilyAcorn Jan 16, 2023
Collaborator Author

@adamreichold
Comment options

Answer selected by LilyAcorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants