Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into sphinx-3-c-types
# Conflicts:
#	Doc/c-api/dict.rst
#	Doc/c-api/init.rst
#	Doc/c-api/marshal.rst
  • Loading branch information
AA-Turner committed Oct 5, 2022
commit 889e46e2eb1dd27206af5c69da1a47b84ee6f900
2 changes: 1 addition & 1 deletion Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Dictionary Objects
.. c:function:: PyObject* PyDict_GetItemString(PyObject *p, const char *key)

This is the same as :c:func:`PyDict_GetItem`, but *key* is specified as a
:c:expr:`const char*`, rather than a :c:type:`PyObject*`.
:c:expr:`const char*`, rather than a :c:expr:`PyObject*`.

Note that exceptions which occur while calling :meth:`__hash__` and
:meth:`__eq__` methods and creating a temporary string object
Expand Down
2 changes: 1 addition & 1 deletion Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ you need to include :file:`pythread.h` to use thread-local storage.
.. note::
None of these API functions handle memory management on behalf of the
:c:expr:`void*` values. You need to allocate and deallocate them yourself.
If the :c:expr:`void*` values happen to be :c:type:`PyObject*`, these
If the :c:expr:`void*` values happen to be :c:expr:`PyObject*`, these
functions don't do refcount operations on them either.

.. _thread-specific-storage-api:
Expand Down
4 changes: 2 additions & 2 deletions Doc/c-api/marshal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following functions allow marshalled values to be read back in.

.. c:function:: long PyMarshal_ReadLongFromFile(FILE *file)

Return a C :c:expr:`long` from the data stream in a :c:type:`FILE*` opened
Return a C :c:expr:`long` from the data stream in a :c:expr:`FILE*` opened
for reading. Only a 32-bit value can be read in using this function,
regardless of the native size of :c:expr:`long`.

Expand All @@ -53,7 +53,7 @@ The following functions allow marshalled values to be read back in.

.. c:function:: int PyMarshal_ReadShortFromFile(FILE *file)

Return a C :c:expr:`short` from the data stream in a :c:type:`FILE*` opened
Return a C :c:expr:`short` from the data stream in a :c:expr:`FILE*` opened
for reading. Only a 16-bit value can be read in using this function,
regardless of the native size of :c:expr:`short`.

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.