As per https://docs.python.org/3/c-api/none.html, None requires to be incremented before being returned to prevent deallocating none This patch must be backported as far as 2.0.