Skip to content

Mark pyclasses frozen if possible. #1250

@ntjohnson1

Description

@ntjohnson1

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Related to #1248
If pyclasses have &mut self then they can't be used by python threading.
Many classes in the repo are thin wrappers around rust structs which already manage concurrency.
This should reduce Already Borrowed errors and shouldn't change any functionality in many cases.
For more complex wrappers this might be more challenging or not possible.

Describe the solution you'd like
Mark classes as frozen, remove mut self confirm if things still compile and tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions