Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
from
functools
import
total_ordering
2
class
Room:
3
def
__init__(self, name, length, width):
4
self.name = name
Callers
nothing calls this directly
Calls
3
House
Class · 0.85
Room
Class · 0.85
add_room
Method · 0.80
Tested by
no test coverage detected