Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> writes: > On Mon, 26 Mar 2018 02:37:44 +0100, bartc wrote: > >> If I instead initialise C using 'C = int("288712...")', then timings >> increase as follows: > > Given that the original number given had 397 digits and has a bit length > of 1318, I must admit to some curiosity as to how exactly you managed to > cast it to a C int (32 bits on most platforms). > > It is too big for an int, a long (64 bits), a long-long (128 bits) or > even a long-long-long-long-long-long-long-long-long-long-long-long-long- > long-long-long (1024 bits), if such a thing even exists. > > So what exactly did you do?
Curiously, the first time I read the original post I also somehow confused it with C code. But no, the variable is named C, it isn't written in the C language. -- https://mail.python.org/mailman/listinfo/python-list