int() 24 times slower then long() in Python 2.3
nick at nick8325.freeserve.co.uk
Tue Jul 13 23:11:30 CEST 2004
"Istvan Albert" <ialbert at mailblocks.com> wrote in message
news:0-6dndjaXKYih2ndRVn-hw at giganews.com...
> Willem wrote:
> > So it may happen that old code performing well under Python 2.2 suddenly
> > slows down a considerable amount under Python 2.3 without any
> > change in the output ...
> IMO the speed at which a bunch of invalid conversions are
> executed means nothing at all. Could you come up with an example
> that show the same symptoms in a meaningful context?
What do you mean? bbbbaaaa is a hex number.
>>> int('bbbbaaaa', 16)
More information about the Python-list