| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ Cell Objects | |||
| 7 | 7 | ||
| 8 | 8 | "Cell" objects are used to implement variables referenced by multiple scopes. | |
| 9 | 9 | For each such variable, a cell object is created to store the value; the local | |
| 10 | - variables of each stack frame that references the value contains a reference to | ||
| 10 | + variables of each stack frame that references the value contain a reference to | ||
| 11 | 11 | the cells from outer scopes which also use that variable. When the value is | |
| 12 | 12 | accessed, the value contained in the cell is used instead of the cell object | |
| 13 | 13 | itself. This de-referencing of the cell object requires support from the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ Complex Number Objects | |||
| 82 | 82 | ||
| 83 | 83 | .. c:type:: Py_complex | |
| 84 | 84 | ||
| 85 | - This C structure defines export format for a Python complex | ||
| 85 | + This C structure defines an export format for a Python complex | ||
| 86 | 86 | number object. | |
| 87 | 87 | ||
| 88 | 88 | .. c:member:: double real | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ macros. | |||
| 46 | 46 | ||
| 47 | 47 | .. c:var:: PyTypeObject PyDateTime_DeltaType | |
| 48 | 48 | ||
| 49 | - This instance of :c:type:`PyTypeObject` represents Python type for | ||
| 49 | + This instance of :c:type:`PyTypeObject` represents the Python type for | ||
| 50 | 50 | the difference between two datetime values; | |
| 51 | 51 | it is the same object as :class:`datetime.timedelta` in the Python layer. | |
| 52 | 52 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,7 @@ found in the dictionary of type objects. | |||
| 32 | 32 | ||
| 33 | 33 | .. c:function:: int PyDescr_IsData(PyObject *descr) | |
| 34 | 34 | ||
| 35 | - Return non-zero if the descriptor objects *descr* describes a data attribute, or | ||
| 35 | + Return non-zero if the descriptor object *descr* describes a data attribute, or | ||
| 36 | 36 | ``0`` if it describes a method. *descr* must be a descriptor object; there is | |
| 37 | 37 | no error checking. | |
| 38 | 38 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,7 +102,7 @@ Error Handling | |||
| 102 | 102 | * Set *\*err_msg* and return ``1`` if an error is set. | |
| 103 | 103 | * Set *\*err_msg* to ``NULL`` and return ``0`` otherwise. | |
| 104 | 104 | ||
| 105 | - An error message is an UTF-8 encoded string. | ||
| 105 | + An error message is a UTF-8 encoded string. | ||
| 106 | 106 | ||
| 107 | 107 | If *config* has an exit code, format the exit code as an error | |
| 108 | 108 | message. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,7 +102,7 @@ See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and | |||
| 102 | 102 | ||
| 103 | 103 | .. note:: | |
| 104 | 104 | ||
| 105 | - Exceptions which occur when this calls :meth:`~object.__getitem__` | ||
| 105 | + Exceptions which occur when this calls the :meth:`~object.__getitem__` | ||
| 106 | 106 | method are silently ignored. | |
| 107 | 107 | For proper error handling, use :c:func:`PyMapping_HasKeyWithError`, | |
| 108 | 108 | :c:func:`PyMapping_GetOptionalItem` or :c:func:`PyObject_GetItem()` instead. | |
@@ -116,7 +116,7 @@ See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and | |||
| 116 | 116 | ||
| 117 | 117 | .. note:: | |
| 118 | 118 | ||
| 119 | - Exceptions that occur when this calls :meth:`~object.__getitem__` | ||
| 119 | + Exceptions that occur when this calls the :meth:`~object.__getitem__` | ||
| 120 | 120 | method or while creating the temporary :class:`str` | |
| 121 | 121 | object are silently ignored. | |
| 122 | 122 | For proper error handling, use :c:func:`PyMapping_HasKeyStringWithError`, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ The following functions allow marshalled values to be read back in. | |||
| 82 | 82 | assumes that no further objects will be read from the file, allowing it to | |
| 83 | 83 | aggressively load file data into memory so that the de-serialization can | |
| 84 | 84 | operate from data in memory rather than reading a byte at a time from the | |
| 85 | - file. Only use these variant if you are certain that you won't be reading | ||
| 85 | + file. Only use this variant if you are certain that you won't be reading | ||
| 86 | 86 | anything else from the file. | |
| 87 | 87 | ||
| 88 | 88 | On error, sets the appropriate exception (:exc:`EOFError`, :exc:`ValueError` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,7 +102,7 @@ All allocating functions belong to one of three different "domains" (see also | |||
| 102 | 102 | strategies and are optimized for different purposes. The specific details on | |
| 103 | 103 | how every domain allocates memory or what internal functions each domain calls | |
| 104 | 104 | is considered an implementation detail, but for debugging purposes a simplified | |
| 105 | - table can be found at :ref:`here <default-memory-allocators>`. | ||
| 105 | + table can be found at :ref:`default-memory-allocators`. | ||
| 106 | 106 | The APIs used to allocate and free a block of memory must be from the same domain. | |
| 107 | 107 | For example, :c:func:`PyMem_Free` must be used to free memory allocated using :c:func:`PyMem_Malloc`. | |
| 108 | 108 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,7 +103,7 @@ Module Objects | |||
| 103 | 103 | created, or ``NULL`` if the module wasn't created from a definition. | |
| 104 | 104 | ||
| 105 | 105 | On error, return ``NULL`` with an exception set. | |
| 106 | - Use :c:func:`PyErr_Occurred` to tell this case apart from a mising | ||
| 106 | + Use :c:func:`PyErr_Occurred` to tell this case apart from a missing | ||
| 107 | 107 | :c:type:`!PyModuleDef`. | |
| 108 | 108 | ||
| 109 | 109 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,7 @@ Managing the Monitoring State | |||
| 136 | 136 | ----------------------------- | |
| 137 | 137 | ||
| 138 | 138 | Monitoring states can be managed with the help of monitoring scopes. A scope | |
| 139 | - would typically correspond to a python function. | ||
| 139 | + would typically correspond to a Python function. | ||
| 140 | 140 | ||
| 141 | 141 | .. c:function:: int PyMonitoring_EnterScope(PyMonitoringState *state_array, uint64_t *version, const uint8_t *event_types, Py_ssize_t length) | |
| 142 | 142 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments