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 @@ -235,7 +235,7 @@ complete listing.
235235
236236.. c :macro :: PyDoc_STRVAR(name, str)
237237
238- Creates a variable with name `` name `` that can be used in docstrings.
238+ Creates a variable with name * name * that can be used in docstrings.
239239 If Python is built without docstrings, the value will be empty.
240240
241241 Use :c:macro: `PyDoc_STRVAR ` for docstrings to support building
@@ -267,6 +267,15 @@ complete listing.
267267 {NULL, NULL}
268268 };
269269
270+ .. c :macro :: PyDoc_VAR(name)
271+
272+ Declares a static character array variable with the given name *name *.
273+
274+ For example::
275+
276+ PyDoc_VAR(python_doc) = PyDoc_STR("A genus of constricting snakes in the Pythonidae family native "
277+ "to the tropics and subtropics of the Eastern Hemisphere.");
278+
270279
271280.. _api-objects :
272281
You can’t perform that action at this time.
0 commit comments