[issue43416] Add README files in Include/cpython and Include/internal

2021-03-25 Thread STINNER Victor


Change by STINNER Victor :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43416] Add README files in Include/cpython and Include/internal

2021-03-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 929c9039fe0468cb37e0811ddfb7b67c98353ea8 by Erlend Egeberg 
Aasland in branch 'master':
bpo-43416: Add Include/README.rst (GH-24884)
https://github.com/python/cpython/commit/929c9039fe0468cb37e0811ddfb7b67c98353ea8


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43416] Add README files in Include/cpython and Include/internal

2021-03-15 Thread Erlend Egeberg Aasland


Change by Erlend Egeberg Aasland :


--
keywords: +patch
nosy: +erlendaasland
nosy_count: 3.0 -> 4.0
pull_requests: +23643
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/24884

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43416] Add README files in Include/cpython and Include/internal

2021-03-08 Thread STINNER Victor


STINNER Victor  added the comment:

* Include/internal/ with extern: C API which must not and can not be used 
outside CPython code base, only stdlib extensions built as built-in extensions 
can use it.

* Include/internal/ with PyAPI_FUNC/PyAPI_DATA: API which should be be used 
outside CPython, but exposed for specific use cases like debuggers and 
profilers. Structures are exposed for debuggers and profilers which don't want 
to execute code to avoid the risk of any unwanted side effect.

* Include/cpython/: Public C API excluded from the limited C API 
(Py_LIMITED_API macro) and the stable ABI (PEP 384).

* Include/: Public limited C API and the stable ABI (PEP 384).

In case of doubt, new C API must be added to the internal C API using extern.

I would suggest a public discussion before adding any new C API to 
Include/cpython/ or Include/

No new functions stealing references or returning borrowed references must be 
added to public C API (limited or not). A strong reference must be returned.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43416] Add README files in Include/cpython and Include/internal

2021-03-06 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

I always hesitate in what subdirectory of Include/ to add a declaration of new 
private API. What is more "private"? It would be nice to add README files in 
these directories which describe what API should be declared here and what is 
the difference between Include/cpython and Include/internal.

--
assignee: docs@python
components: Documentation, Interpreter Core
messages: 388196
nosy: docs@python, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Add README files in Include/cpython and Include/internal
type: enhancement
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com