GNOME Bugzilla – Bug 692381
ValueError on passing inf float argument
Last modified: 2013-01-23 13:58:23 UTC
>>> import gi >>> gi.version_info (3, 4, 2) >>> from gi.repository import GObject >>> v = GObject.Value() >>> v.init(GObject.TYPE_FLOAT) 0.0 >>> v.set_float(float('inf')) Traceback (most recent call last):
+ Trace 231422
return info.invoke(*args, **kwargs)
same for double and float('-inf'), float('nan') works
Fixed that and the broken error message, including tests: http://git.gnome.org/browse/pygobject/commit/?id=e65c124893ceaa9c97eb4c8c743fbeb756b9a6e6 Thank you for the report!