> 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). > 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. > 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. Regards, Martin _______________________________________________ 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