Dr. David Kirkby wrote: > javier wrote: > >> How about using this? >> >> #!/usr/bin/env python >> >> import sys >> b = 1 >> x = sys.maxint >> >> while x: >> x = x >> 1 >> b = b+1 >> >> print(b) >> >> >> Cheers >> J > > It looks a bit better than a simple 32/64 result. 128 bit processors are in > existence now, though not for general purpose computers. So anything that is > is > less likely to break is better as far as I am concerned.
At the risk of stating the obvious, if you want to be certain, you can use Cython or a C program. Much more hassle in a SPKG though. print sizeof(void*) * 8 -- Dag Sverre -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org