changeset 1130:aae62c4b2e9f

coding_style: Added a new point to discuss, about which inf/nan to use
author Olivier Delalleau <delallea@iro>
date Wed, 15 Sep 2010 12:12:34 -0400
parents 40c1461ce9ef
children d9550c27a192
files doc/v2_planning/coding_style.txt
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/v2_planning/coding_style.txt	Wed Sep 15 12:09:22 2010 -0400
+++ b/doc/v2_planning/coding_style.txt	Wed Sep 15 12:12:34 2010 -0400
@@ -409,3 +409,11 @@
 vous pourriez p-e définir des type/value-checkers standards pour éviter que
 tout le monde redéfinissent les siens à sa façon.
 
+Consistent inf / nan
+--------------------
+
+OD: Use numpy.inf and numpy.nan rather than float('inf') / float('nan')?
+(should be slightly more efficient even if efficiency usually doesn't matter
+here - the main goal would be for everyone to use the same inf / nan to make
+the code consistent).
+