Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catboost/catboost
/ get_port
Method
get_port
library/python/port_manager/__init__.py:52–56 ·
view source on GitHub ↗
Gets free TCP port
(self, port=0)
Source
from the content-addressed store, hash-verified
50
self.release()
51
52
def
get_port(self, port=0):
53
''
&
#x27;
54
Gets free TCP port
55
''
&
#x27;
56
return
self.get_tcp_port(port)
57
58
def
get_tcp_port(self, port=0):
59
''
&
#x27;
Callers
1
execute_catboost_dist
Function · 0.80
Calls
1
get_tcp_port
Method · 0.95
Tested by
no test coverage detected