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