--- Operating System, Graphics card ---
Ubuntu 13.04 amd64, GeForce GTX670
--- Blender version with error, and version that worked ---
r60551
--- Short description of error ---
The description of IntProperty says:
"... min=-sys.maxint, max=sys.maxint, soft_min=-sys.maxint, soft_max=sys.maxint, ..."
Here, sys.maxint not existing in Python3 can be substituted with sys.maxsize. However, IntProperty actually uses INT_MIN and INT_MAX for the default range, and sys.maxsize is not same as INT_MAX.
On Ubuntu (64bit or 32bit),
sys.maxsize = 9223372036854775807 or 2147483647
INT_MAX = 2147483647
LONG_MAX = 9223372036854775807L or 2147483647L
LLONG_MAX = 9223372036854775807LL
So the description is apparently incorrect.
Description
Description
Revisions and Commits
Revisions and Commits
Event Timeline
Comment Actions
There is no real maximum for integers in py3, it uses some kind of "infinite" representation which characteristics are given by sys.int_info named tuple. OTOH, int in C is always 32bits, even on a 64bit system…
We should probably provide min/max_int/float in bpy.app module?
Comment Actions
I agree the bpy module provides the constants indicating the maximum.
Anyway, is the limitation of int property's precision documented anywhere? As far as I know, it's not. I think such information should be included in the API documentation to avoid the users attempt to save too large value exceeding its precision.