forked from JuliaPy/PyCall.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weakref support for pyjlwrap types
I have added [weak reference support][1] for `pyjlwrap` types, following the documentation for Python 3+. Adding weak reference support for Python 2.x seems much the same as in 3.x, however 3.x does not use Py_TPFLAGS_HAVE_WEAKREFS, which also does not seem necessary for 2.x. Simple testing suggests that this is working as expected. Closes JuliaPy#21, JuliaPy#158 [1]: https://docs.python.org/3/extending/newtypes.html#weak-reference-support
- Loading branch information
1 parent
b9cca81
commit 5a5d90c
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters