Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ __str__
Method
__str__
07_structs/python/defaults.py:7–8 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5
self.z = z
if
z is not None
else
0
6
7
def
__str__(self):
8
return
f
"D({self.x}, {self.y}, {self.z})"
9
10
11
if
__name__ ==
"__main__"
:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected