June 2017
Beginner to intermediate
274 pages
6h 49m
English
The num_values variable in the previous code example is just a chunk of memory that stores bits that represent an integer value. It doesn't have any of the extra data needed to turn it into a Python object.
So, to resolve this, let's define an extension type called StatisticalArray (refer to the following code example), which contains a pointer to a memory location and two integers. The memory location is supposed to contain double-precision floating point numbers. ...