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

Method __init__

29_pattern_matching_revisited/python/cmd_split.py:8–11  ·  view source on GitHub ↗
(self, objs=None)

Source from the content-addressed store, hash-verified

6
7class Room:
8 def __init__(self, objs=None):
9 self.objects = objs
10 if objs is None:
11 self.objects = set(["banana", "chair", "piano"])
12 def describe(self):
13 print("the room is dark and small, it contains", self.objects);
14 def neighbor(self, direction):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected