Skip to content

bpo-40217: Clean code in PyType_FromSpec_Alloc and add NEWS entry - #19733

Merged
pablogsal merged 2 commits into
masterfrom
bpo-40217-2
Apr 27, 2020
Merged

bpo-40217: Clean code in PyType_FromSpec_Alloc and add NEWS entry#19733
pablogsal merged 2 commits into
masterfrom
bpo-40217-2

Conversation

@pablogsal

@pablogsal pablogsal commented Apr 27, 2020

Copy link
Copy Markdown
Member
@pablogsal

Copy link
Copy Markdown
Member Author

Some minor cleanups were missing before #19414 was merged

Comment thread Objects/typeobject.c
if (obj == NULL) {
return PyErr_NoMemory();

obj = obj;

Copy link
Copy Markdown
Member

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!)

Copy link
Copy Markdown
Member Author

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 😉

Comment thread Objects/typeobject.c
Comment thread Misc/NEWS.d/next/C API/2020-04-27-14-00-38.bpo-40217.sgn6c8.rst Outdated
Co-Authored-By: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@pablogsal
pablogsal merged commit 91a5ae1 into master Apr 27, 2020
@pablogsal
pablogsal deleted the bpo-40217-2 branch April 27, 2020 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants