MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / take

Method take

29_pattern_matching_revisited/python/cmd_split.py:31–36  ·  view source on GitHub ↗
(self, obj, room)

Source from the content-addressed store, hash-verified

29 def __init__(self):
30 self.backpack = set()
31 def take(self, obj, room):
32 if obj in room.objects:
33 self.backpack.add(obj)
34 room.objects.remove(obj)
35 else:
36 print("not found", obj)
37
38 def drop(self, obj, room):
39 if obj in self.backpack:

Callers 1

cmd_split.pyFile · 0.45

Calls 2

printFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected