""" % ', '.join(Axes._events) # <---Whats that
> doing there?
It's building the appropriate docstring from the Axes._events Note
that _events is defined above that docstring with
_events = ('xlim_changed', 'ylim_changed')
This is basically the principle of trying to avoid having to change
things in two places. We do a lot of this kind of stuff with
docstrings, especially in the pylab module
Eg, for the plot documentation
plot.__doc__ = _shift_string(Axes.plot.__doc__) + """
Addition kwargs: hold = [True|False] overrides default hold state"""
You can test removing it to see if this is the cause of the segfault,
but I would be surprised....