Browse Source

docs/reference/speed_python: Add missing self to var caching example.

pull/5041/head
Paul m. p. P 5 years ago
committed by Damien George
parent
commit
afc8596c15
  1. 2
      docs/reference/speed_python.rst

2
docs/reference/speed_python.rst

@ -165,7 +165,7 @@ by caching the object in a local variable:
class foo(object):
def __init__(self):
ba = bytearray(100)
self.ba = bytearray(100)
def bar(self, obj_display):
ba_ref = self.ba
fb = obj_display.framebuffer

Loading…
Cancel
Save