MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / example.py

File example.py

src/8/making_classes_support_comparison_operations/example.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from functools import total_ordering
2class Room:
3 def __init__(self, name, length, width):
4 self.name = name

Callers

nothing calls this directly

Calls 3

HouseClass · 0.85
RoomClass · 0.85
add_roomMethod · 0.80

Tested by

no test coverage detected