Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __str__
Method
__str__
Lib/test/test_enum.py:321–322 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
319
#
320
class
NewBaseEnum(self.enum_type):
321
def
__str__(self):
322
return
self.name.title()
323
def
__format__(self, spec):
324
return
''
.join(reversed(self.name))
325
self.NewBaseEnum = NewBaseEnum
Callers
nothing calls this directly
Calls
1
title
Method · 0.45
Tested by
no test coverage detected