summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-10 05:44:56 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-10 05:44:56 (GMT)
commit3008b1c4bba34eae2682afbd61f8f66ca1683289 (patch)
treea2016c4f34dda3b57c2fee64097b4e16ff4a375b /Doc/c-api
parent7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb (diff)
parentc04fb56e36999a4162e6ccfe1f9357100abaee99 (diff)
downloadcpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.zip
cpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.tar.gz
cpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.tar.bz2
Issue #26304: Merge doc wording from 3.5
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/arg.rst2
-rw-r--r--Doc/c-api/function.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index caceb40..d9f0f43 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -30,7 +30,7 @@ variable(s) whose address should be passed.
Strings and buffers
-------------------
-These formats allow to access an object as a contiguous chunk of memory.
+These formats allow accessing an object as a contiguous chunk of memory.
You don't have to provide raw storage for the returned unicode or bytes
area. Also, you won't have to release any memory yourself, except with the
``es``, ``es#``, ``et`` and ``et#`` formats.
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index ad98322..4c74dc8 100644
--- a/Doc/c-api/function.rst
+++ b/Doc/c-api/function.rst
@@ -40,7 +40,7 @@ There are a few functions specific to Python functions.
.. c:function:: PyObject* PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname)
- As :c:func:`PyFunction_New`, but also allows to set the function object's
+ As :c:func:`PyFunction_New`, but also allows setting the function object's
``__qualname__`` attribute. *qualname* should be a unicode object or NULL;
if NULL, the ``__qualname__`` attribute is set to the same value as its
``__name__`` attribute.