3 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
0a9619bf83 Python API: fix unwrapping of arrays of structs
Unwrapping an array of structs is meant to take the ownership share for
these structs, and thus to clear them. This means that the destructor of
Python wrappers for structs must handle the case where they no longer
have the ownership of a struct value: they didn't so far, which
triggered crashes.

TN: UA05-027
2021-10-18 11:46:46 +02:00
Pierre-Marie de Rodat
2b9b33d6a0 Remove __future__ imports and adjust stylechecks
TN: T511-017
2020-05-26 12:33:48 +02:00
Pierre-Marie de Rodat
f352c7a361 Python API: do not dec_ref C array values when coming from struct fields
TN: T423-042
2020-04-28 11:48:45 +02:00