summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-13 20:45:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-13 20:45:47 (GMT)
commit4eec95ad2a44ab95d526304addde99231b86f919 (patch)
tree29579753da5a0e3434cded63248a0a2bb6a53d65 /Include
parent2d95f1ad570791a5dffb16addd74b35b46f77fdc (diff)
downloadcpython-4eec95ad2a44ab95d526304addde99231b86f919.zip
cpython-4eec95ad2a44ab95d526304addde99231b86f919.tar.gz
cpython-4eec95ad2a44ab95d526304addde99231b86f919.tar.bz2
SF patch #906501: Fix typos in pystate.h comments
(Contributed by Greg Chapman.)
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 63a5cb8..ff35969 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -124,7 +124,7 @@ typedef
Py_END_ALLOW_THREADS macros are acceptable.
The return value is an opaque "handle" to the thread state when
- PyGILState_Acquire() was called, and must be passed to
+ PyGILState_Ensure() was called, and must be passed to
PyGILState_Release() to ensure Python is left in the same state. Even
though recursive calls are allowed, these handles can *not* be shared -
each unique call to PyGILState_Ensure must save the handle for its
@@ -138,7 +138,7 @@ PyAPI_FUNC(PyGILState_STATE) PyGILState_Ensure(void);
/* Release any resources previously acquired. After this call, Python's
state will be the same as it was prior to the corresponding
- PyGILState_Acquire call (but generally this state will be unknown to
+ PyGILState_Ensure() call (but generally this state will be unknown to
the caller, hence the use of the GILState API.)
Every call to PyGILState_Ensure must be matched by a call to