8000 bpo-32124: C API preinit doc, change note formatting by vstinner · Pull Request #4621 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@vstinner
Copy link
Member
@vstinner vstinner commented Nov 28, 2017

Format the list of functions that should not be called before
Py_Initialize() as a list, rather than a note.

https://bugs.python.org/issue32124

Format the list of functions that should not be called before
Py_Initialize() as a list, rather than a note.
On the contrary, the following functions **should not be called** before
:c:func:`Py_Initialize`: 8000

* :c:func:`Py_EncodeLocale`
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this would look better. The list takes more space and attracts more attention (and distract it from the above lists). This list is less important than above lists. Actually the list of functions that should not be called before Py_Initialize() is much longer. ;-) Here are just functions that look similar to functions in the above lists.

Copy link
Member

Choose a reason for hiding this comment

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

But removing the "note" directive LGTM.

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe we need a distinct section for this list?

@tuchik
Copy link
tuchik commented Nov 29, 2017

yes

@vstinner
Copy link
Member Author
vstinner commented Dec 4, 2017

@ericsnowcurrently: I wrote this PR to address on your comment in my previous PR, but @serhiy-storchaka doesn't like it. So, what do you think?

I wrote functions that must not be called before Py_Initialize() as a sentence in a note, to not confuse users, since the sections described functions safe to call before Py_Initialize()...

@vstinner
Copy link
Member Author

I dislike the new style of the note as Serhiy, and Eric Snow doesn't reply, so I close this PR.

@vstinner vstinner closed this Dec 15, 2017
@vstinner vstinner deleted the capi_preinit2 branch December 15, 2017 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0