From 977886f683ecad362f200aeb26fe57b62fa1e2e9 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Fri, 25 Aug 2017 23:42:12 -0400 Subject: [PATCH] pep-550: Rename get -> lookup (#376) --- pep-0550.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0550.rst b/pep-0550.rst index 397ad8038..a025ef45c 100644 --- a/pep-0550.rst +++ b/pep-0550.rst @@ -935,7 +935,7 @@ implemented as follows (in pseudo-code):: class ContextVar: - def get(self): + def lookup(self): tstate = PyThreadState_Get() ec_node = tstate.ec @@ -986,14 +986,14 @@ The cache is then implemented as follows:: self.version += 1 - def get(self): + def lookup(self): tstate = PyThreadState_Get() if (self.last_tstate_id == tstate.unique_id and self.last_version == self.version): return self.last_value - value = self._get_uncached() + value = self._lookup_uncached() self.last_value = value # borrowed ref self.last_tstate_id = tstate.unique_id