January 2020
Intermediate to advanced
532 pages
13h 31m
English
The PyCall.jl package's documentation suggests the user stores a Python object using the global variable placeholder technique. The following excerpt can be found in its documentation:
A type-stable global constant is generally what we want for high-performance code. Basically, when the module is initialized, this global constant can be initialized with a value of PyNULL(). This constant is really just a placeholder object that can be mutated with the actual value later.
This technique is similar to the use of Ref as mentioned ...
Read now
Unlock full access