MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / __repr__

Method __repr__

asyncpg/pool.py:103–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 return con
102
103 def __repr__(self) -> str:
104 if self._con is None:
105 return '<{classname} [released] {id:#x}>'.format(
106 classname=self.__class__.__name__, id=id(self))
107 else:
108 return '<{classname} {con!r} {id:#x}>'.format(
109 classname=self.__class__.__name__, con=self._con, id=id(self))
110
111
112class PoolConnectionHolder:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected