# HG changeset patch # User Olivier Delalleau # Date 1284567154 14400 # Node ID aae62c4b2e9f681057ddbb29165aae83eb20166f # Parent 40c1461ce9ef17f0768964af94121d152e48419c coding_style: Added a new point to discuss, about which inf/nan to use diff -r 40c1461ce9ef -r aae62c4b2e9f doc/v2_planning/coding_style.txt --- 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). +