Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ countcompare
Method
countcompare
tools/python-3.11.9-amd64/Tools/demo/sortvisu.py:185–187 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
183
self.updatereport()
184
185
def
countcompare(self):
186
self.ncompares = self.ncompares + 1
187
self.updatereport()
188
189
def
updatereport(self):
190
text =
"%d cmps, %d swaps"
% (self.ncompares, self.nswaps)
Callers
1
compare
Method · 0.95
Calls
1
updatereport
Method · 0.95
Tested by
no test coverage detected