diff options
author | Tim Leslie <tim.leslie@gmail.com> | 2006-03-23 02:13:46 +0000 |
---|---|---|
committer | Tim Leslie <tim.leslie@gmail.com> | 2006-03-23 02:13:46 +0000 |
commit | 4867af4f63044bbc487c8510b990dfa65c9531e0 (patch) | |
tree | 506e352c99612e96f65021c6fb510af2a027412a /numpy/lib | |
parent | 56ae0d3d843e2e6f8548cde972c2b84446e84071 (diff) | |
download | numpy-4867af4f63044bbc487c8510b990dfa65c9531e0.tar.gz |
change header comments into docstrings
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/convertcode.py | 41 | ||||
-rw-r--r-- | numpy/lib/machar.py | 10 |
2 files changed, 25 insertions, 26 deletions
diff --git a/numpy/lib/convertcode.py b/numpy/lib/convertcode.py index 8587993c4..1db3ecc85 100644 --- a/numpy/lib/convertcode.py +++ b/numpy/lib/convertcode.py @@ -1,24 +1,23 @@ - -# This module converts code written for Numeric to run with numpy - -# Makes the following changes: -# * Converts typecharacters -# * Changes import statements (warns of use of from Numeric import *) -# * Changes import statements (using numerix) ... -# * Makes search and replace changes to: -# - .typecode() -# - .iscontiguous() -# - .byteswapped() -# - .itemsize() -# * Converts .flat to .ravel() except for .flat = xxx or .flat[xxx] -# * Change typecode= to dtype= -# * Eliminates savespace=xxx -# * Replace xxx.spacesaver() with True -# * Convert xx.savespace(?) to pass + ## xx.savespace(?) -# #### -- not * Convert a.shape = ? to a.reshape(?) -# * Prints warning for use of bool, int, float, copmlex, object, and unicode -# - +""" +This module converts code written for Numeric to run with numpy + +Makes the following changes: + * Converts typecharacters + * Changes import statements (warns of use of from Numeric import *) + * Changes import statements (using numerix) ... + * Makes search and replace changes to: + - .typecode() + - .iscontiguous() + - .byteswapped() + - .itemsize() + * Converts .flat to .ravel() except for .flat = xxx or .flat[xxx] + * Change typecode= to dtype= + * Eliminates savespace=xxx + * Replace xxx.spacesaver() with True + * Convert xx.savespace(?) to pass + ## xx.savespace(?) + #### -- not * Convert a.shape = ? to a.reshape(?) + * Prints warning for use of bool, int, float, copmlex, object, and unicode +""" __all__ = ['fromfile', 'fromstr'] import sys diff --git a/numpy/lib/machar.py b/numpy/lib/machar.py index 22560e598..4c2282454 100644 --- a/numpy/lib/machar.py +++ b/numpy/lib/machar.py @@ -1,9 +1,9 @@ -# -# Machine arithmetics - determine the parameters of the -# floating-point arithmetic system -# +""" +Machine arithmetics - determine the parameters of the +floating-point arithmetic system +""" # Author: Pearu Peterson, September 2003 -# + __all__ = ['MachAr'] |