@@ -235,10 +235,10 @@ Note that the Python name for the exception object is :exc:`spam.error`. The
235235being :exc: `Exception ` (unless another class is passed in instead of ``NULL ``),
236236described in :ref: `bltin-exceptions `.
237237
238- Note also that the :c:data: `SpamError ` variable retains a reference to the newly
238+ Note also that the :c:data: `! SpamError ` variable retains a reference to the newly
239239created exception class; this is intentional! Since the exception could be
240240removed from the module by external code, an owned reference to the class is
241- needed to ensure that it will not be discarded, causing :c:data: `SpamError ` to
241+ needed to ensure that it will not be discarded, causing :c:data: `! SpamError ` to
242242become a dangling pointer. Should it become a dangling pointer, C code which
243243raises the exception could cause a core dump or other unintended side effects.
244244
@@ -279,17 +279,17 @@ statement::
279279It returns ``NULL `` (the error indicator for functions returning object pointers)
280280if an error is detected in the argument list, relying on the exception set by
281281:c:func: `PyArg_ParseTuple `. Otherwise the string value of the argument has been
282- copied to the local variable :c:data: `command `. This is a pointer assignment and
282+ copied to the local variable :c:data: `! command `. This is a pointer assignment and
283283you are not supposed to modify the string to which it points (so in Standard C,
284- the variable :c:data: `command ` should properly be declared as ``const char
284+ the variable :c:data: `! command ` should properly be declared as ``const char
285285*command ``).
286286
287287The next statement is a call to the Unix function :c:func: `system `, passing it
288288the string we just got from :c:func: `PyArg_ParseTuple `::
289289
290290 sts = system(command);
291291
292- Our :func: `spam.system ` function must return the value of :c:data: `sts ` as a
292+ Our :func: `! spam.system ` function must return the value of :c:data: `! sts ` as a
293293Python object. This is done using the function :c:func: `PyLong_FromLong `. ::
294294
295295 return PyLong_FromLong(sts);
0 commit comments