Skip to content

A #pyclass that has another #pyclass as attribute #4585

Discussion options

You must be logged in to vote
  1. This looks generally correct to me.
  2. You can make the access cheaper by using #[pyclass(frozen)], and then you can use .get() instead of .borrow(py) and don't need the GIL.
  3. Thankfully (2) has an alternative :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@piotryordanov
Comment options

@davidhewitt
Comment options

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