why does math.pow yields OverflowError (while python itself can calculate that large number)

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Oct 23 23:51:34 CEST 2008

On Thu, 23 Oct 2008 13:40:22 +0000, Marc 'BlackJack' Rintsch wrote:

> This can be written more straigth forward as ``100**155`` or ``pow(100,
> 155)``.  No need for `eval()`\ing a string.

But how else can the OP get an order of magnitude slow-down on an 
operation that is slow in the first place?



More information about the Python-list mailing list