◐ Shell
clean mode source ↗

bpo-40217: Clean code in PyType_FromSpec_Alloc and add NEWS entry by pablogsal · Pull Request #19733 · python/cpython

Conversation

@pablogsal

Some minor cleanups were missing before #19414 was merged

vstinner

if (obj == NULL) {
return PyErr_NoMemory();

obj = obj;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind to keep this instruction? I love it :-D (I'm kidding you, please remove it!)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add some volatile 😉

Co-Authored-By: Victor Stinner <vstinner@python.org>

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.