This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Arfrever, alex, ammar2, arigo, docs@python, eli.bendersky, meador.inge, python-dev, theller, vinay.sajip, vstinner
Date 2019-11-05.18:58:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572980293.44.0.602655349165.issue16575@roundup.psfhosted.org>
In-reply-to
Content
Opened https://github.com/python/cpython/pull/17064 to fix this. Essentially it's a tiny little oversight in the back-porting. In the 3.7 branch, we perform an attribute lookup for `from_param` before the union checking code, so we must remember to DECREF it. This is unlike master where the attribute lookup happens after the union checking code.



λ win32\python_d.exe -m test -R 3:3 test_ctypes
0:00:00 Run tests sequentially
0:00:00 [1/1] test_ctypes
beginning 6 repetitions
123456
......

== Tests result: SUCCESS ==

1 test OK.

Total duration: 14.8 sec
Tests result: SUCCESS
History
Date User Action Args
2019-11-05 18:58:13ammar2setrecipients: + ammar2, arigo, theller, vinay.sajip, vstinner, Arfrever, alex, eli.bendersky, meador.inge, docs@python, python-dev
2019-11-05 18:58:13ammar2setmessageid: <1572980293.44.0.602655349165.issue16575@roundup.psfhosted.org>
2019-11-05 18:58:13ammar2linkissue16575 messages
2019-11-05 18:58:13ammar2create