From 74eec4e13435688e72ef6a50f3263ab6edf83d55 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 29 Jan 2008 03:14:01 +0000 Subject: Fix fromstring to match fromfile behavior when parsing integers (base-10 only). Ticket #650 --- numpy/add_newdocs.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/add_newdocs.py') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 91c6a6e80..d727df234 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -216,6 +216,7 @@ add_newdoc('numpy.core.multiarray','fromstring', size is determined by the size of string. If sep is not empty then the string is interpreted in ASCII mode and converted to the desired number type using sep as the separator between elements (extra whitespace is ignored). + ASCII integer conversions are base-10; octal and hex are not supported. """) -- cgit v1.2.1 From c66da19ab8bd6ad7f035b77026bbd703eab199d4 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Fri, 8 Feb 2008 10:54:01 +0000 Subject: ran reindent --- numpy/add_newdocs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'numpy/add_newdocs.py') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index d727df234..7955beca7 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -1,7 +1,7 @@ # This is only meant to add docs to # objects defined in C-extension modules. # The purpose is to allow easier editing of the -# docstrings without requiring a re-compile. +# docstrings without requiring a re-compile. from lib import add_newdoc add_newdoc('numpy.core','dtype', @@ -238,7 +238,7 @@ add_newdoc('numpy.core.multiarray','fromfile', open file object or string containing file name. dtype : data-type data type of the returned array - count : int + count : int number of items to read (-1 mean 'all') sep : string separater between items if file is a text file (default "") @@ -1107,8 +1107,8 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('round', is done if the array is not of float type and 'decimals' is >= 0. The keyword 'out' may be used to specify a different array to hold the - result rather than the default new array. If the type of the array - specified by 'out' differs from that of 'a', the result is cast to the + result rather than the default new array. If the type of the array + specified by 'out' differs from that of 'a', the result is cast to the new type, otherwise the original type is kept. Floats round to floats by default. @@ -1209,7 +1209,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('sort', |'heapsort' | 3 | O(n*log(n)) | 0 | no | |------------------------------------------------------| - All the sort algorithms make temporary copies of the data when the sort is + All the sort algorithms make temporary copies of the data when the sort is not along the last axis. Consequently, sorts along the last axis are faster and use less space than sorts along other axis. """)) -- cgit v1.2.1