In order to avoid different behavior between 4.6 and future releases we should backport the pytalloc_GenericObject_reference() improvements before the final 4.6.0 release. Marking this as regression so that we don't forget about it.
Created attachment 12987 [details] Patches for v4-6-test
Pushed to autobuild-v4-6-test.
(In reply to Stefan Metzmacher from comment #2) Pushed to v4-6-test. Closing out bug report. Thanks!