ENH: be Python 4 proof :)
FIX: inline code change invalidates memory