MCPcopy Create free account
hub / github.com/PageBot/PageBot / _get_p

Method _get_p

Lib/pagebot/toolbox/units.py:1310–1316  ·  view source on GitHub ↗

No transforming or casting, just answer the self.v. >>> p(5).p 5

(self)

Source from the content-addressed store, hash-verified

1308 UNIT = 'p'
1309
1310 def _get_p(self):
1311 """No transforming or casting, just answer the self.v.
1312
1313 >>> p(5).p
1314 5
1315 """
1316 return asIntOrFloat(self.v)
1317 p = property(_get_p)
1318
1319 def __repr__(self):

Callers

nothing calls this directly

Calls 1

asIntOrFloatFunction · 0.90

Tested by

no test coverage detected