Number of bits/sizeof int

Mark Dickinson dickinsm at gmail.com
Mon Feb 2 15:57:13 EST 2009


On Jan 31, 7:03 am, Jon Clements <jon... at googlemail.com> wrote:
> Any tips on how to get this in 2.5.2 as that's the production version
> I'm stuck with.

It's a bit cheeky, but:

from decimal import _nbits as nbits

should also work in 2.5.2 (but not in 2.5.1)!

Mark





More information about the Python-list mailing list