On Dec 3, 2007 11:34 AM, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Actually it's still somewhat interesting to be able to tell whether a > > particular Python build uses 64-bit pointer or 32-bit pointers. (I > > realize sys.maxint doesn't quite tell us this, but on Linux at least > > it does.) > > Sure. However, you could also use _testcapi.PY_SSIZE_T_MAX, or > ctypes.sizeof(ctypes.py_object).
Much less intuitive though. > > I also suspecet that sys.maxint is used frequently for "some > > large integer" used as an approximation of infinity in some context. > > Sure. However, 1<<1000 might do as well. Fair enough. (or 2**64 :-) > > IMO we should devise an API specifically for that. Or we should get > > rid of it and force everyone to just call PyInt_AsLong and test for an > > error return. > > I'd be in favor of the latter. I never meant the PyInt_CheckExact hack > to persist into the release. OK. What's needed? -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com