Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ format
Method
format
recipes/Python/578835_String_templates_adaptive/recipe-578835.py:47–48 ·
view source on GitHub ↗
(self,*args,**kwargs)
Source
from the content-addressed store, hash-verified
45
46
class
C(str):
47
def
format(self,*args,**kwargs):
48
return
C(IndentFormatter().format(self,*args,**kwargs))
49
50
def
test():
51
arrayvars = [
'arr{n}'
.format(n=n)
for
n in range(3)]
Callers
12
from_param
Method · 0.45
obtain_privileges
Function · 0.45
convert
Function · 0.45
index_text_file
Function · 0.45
usage
Function · 0.45
main
Function · 0.45
make_key_pair
Function · 0.45
__str__
Method · 0.45
log_
Method · 0.45
parse
Method · 0.45
test
Function · 0.45
lru_timestamp
Function · 0.45
Calls
2
C
Class · 0.70
IndentFormatter
Class · 0.70
Tested by
no test coverage detected