diff options
| author | Armin Rigo <arigo@tunes.org> | 2017-09-14 22:42:32 +0200 |
|---|---|---|
| committer | Armin Rigo <arigo@tunes.org> | 2017-09-14 22:42:32 +0200 |
| commit | 7628c4d48b4a042cde9badda0129f295ac39c3af (patch) | |
| tree | 72b67a432829110b963c6778eae35c642ee961b8 /c/call_python.c | |
| parent | 192143884d112be8172a7e5edc95a0e99a3feadf (diff) | |
| download | cffi-7628c4d48b4a042cde9badda0129f295ac39c3af.tar.gz | |
Update the comment.
Diffstat (limited to 'c/call_python.c')
| -rw-r--r-- | c/call_python.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/call_python.c b/c/call_python.c index 0de556b..6e15ca3 100644 --- a/c/call_python.c +++ b/c/call_python.c @@ -234,9 +234,10 @@ static void cffi_call_python(struct _cffi_externpy_s *externpy, char *args) save_errno(); /* We need the infotuple here. We could always go through - interp->modules['..'][externpy], but to avoid the extra dict + _update_cache_to_call_python(), but to avoid the extra dict lookups, we cache in (reserved1, reserved2) the last seen pair - (interp->modules, infotuple). + (interp->modules, infotuple). The first item in this tuple is + a random PyObject that identifies the subinterpreter. */ if (externpy->reserved1 == NULL) { /* Not initialized! We didn't call @ffi.def_extern() on this |
