by makecheck · 9y ago · 0 comments
D = decimal.Decimal
x = D("1.2345")
Also (at least this was once true) by doing so you save Python from a dictionary lookup after the dot "." each time.By importing a function and assigning a 1 char alias to it, the readability of the code is impacted.