Author: Armin Rigo <[email protected]>
Branch:
Changeset: r2694:ffe3a7c191a6
Date: 2016-05-07 15:25 +0200
http://bitbucket.org/cffi/cffi/changeset/ffe3a7c191a6/
Log: document e7ca388b0197 in whatsnew
diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst
--- a/doc/source/whatsnew.rst
+++ b/doc/source/whatsnew.rst
@@ -11,6 +11,11 @@
* ``ffi.gc(p, None)`` removes the destructor on an object previously
created by another call to ``ffi.gc()``
+* ``bool(ffi.cast("primitive type", x))`` now returns False if the
+ value is zero (including ``-0.0``), and True otherwise. Previously
+ this would only return False for cdata objects of a pointer type when
+ the pointer is NULL.
+
v1.6
====
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit