Skip to content

Commit 84a8ed9

Browse files
committed
Add note in comment
1 parent 15a335f commit 84a8ed9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pycall/wrapper_object_cache.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class Key
1818
@address_key_map = {}
1919

2020
def self.[](address)
21+
# An instance of Key created here is parmanently cached in @address_key_map.
22+
# This behavior is intentional.
2123
@address_key_map[address] ||= new(address)
2224
end
2325

0 commit comments

Comments
 (0)