Gabriel C added the comment:
Some further investigation suggests this may have nothing to do with pickle at
all.
Consider the following short example:
```
def CreateDynamicClass(basetype):
class DynamicClassImpl(basetype):
def __init__(self):
super(DynamicClassImpl
New submission from Gabriel C :
The following results in a segfault on 3.7.4 (running on macOS high sierra) and
3.5 (running on ubuntu 16.04). It does not happen in python 2.7.
The problem seems to involve two effects. The first is the creation of a class
with a dynamic type that inherits