Skip to content

_delete class variable used in Random class doesn't work as intended #108

Description

@roberthdevries

When calling self._delete(self.native_object) where self._delete is set to _lib.wc_FreeRng, the parameters passed to wc_FreeRng are self and self.native_object, instead of only self.native_object.

If you run the attached Python script, the function some_delete will print 2 parameters instead of 1.
One fix would be to call Random._delete or use _lib.wc_FreeRng directly.

extra_self_param.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions