File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ complete listing.
247247
248248.. c :macro :: PyDoc_STRVAR(name, str)
249249
250- Creates a variable with name `` name `` that can be used in docstrings.
250+ Creates a variable with name * name * that can be used in docstrings.
251251 If Python is built without docstrings, the value will be empty.
252252
253253 Use :c:macro: `PyDoc_STRVAR ` for docstrings to support building
@@ -279,6 +279,15 @@ complete listing.
279279 {NULL, NULL}
280280 };
281281
282+ .. c :macro :: PyDoc_VAR(name)
283+
284+ Declares a static character array variable with the given name *name *.
285+
286+ For example::
287+
288+ PyDoc_VAR(python_doc) = PyDoc_STR("A genus of constricting snakes in the Pythonidae family native "
289+ "to the tropics and subtropics of the Eastern Hemisphere.");
290+
282291
283292.. _api-objects :
284293
You can’t perform that action at this time.
0 commit comments