newobject
base object defines fallback Py2-compatible special methodspast.builtins
module improvedsurrogateescape
error handlernewlist
typelistvalues
and listitems
future.standard_library.*
-> future.backports
http.server
and urllib
modulesfuture.builtins
ΒΆThe future.builtins
module is also accessible as builtins
on Py2.
pow()
supports fractional exponents of negative numbers like in Py3:
>>> from builtins import pow
>>> pow(-1, 0.5)
(6.123233995736766e-17+1j)
round()
uses Banker’s Rounding as in Py3 to the nearest even last digit:
>>> from builtins import round
>>> assert round(0.1250, 2) == 0.12