Mercurial > pylearn
diff doc/v2_planning/API_coding_style.txt @ 1305:b60a9b6eee68
API_coding_style: Added point mentioned during meeting
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Fri, 01 Oct 2010 15:27:03 -0400 |
parents | b5673b32e8ec |
children | 565e4ef0bfbd |
line wrap: on
line diff
--- a/doc/v2_planning/API_coding_style.txt Fri Oct 01 14:56:54 2010 -0400 +++ b/doc/v2_planning/API_coding_style.txt Fri Oct 01 15:27:03 2010 -0400 @@ -318,6 +318,9 @@ test infinite / NaN values. This is important because ``numpy.nan != float('nan')``. + * Whenever possible, mimic the numpy / scipy interfaces when writing code + similar to what can be found in these packages. + * Avoid backslashes whenever possible. They make it more difficult to edit code, and they are ugly (as well as potentially dangerous if there are trailing white spaces).