From: travlr <vel...@gm...> - 2005-09-17 00:22:13
|
Here is the diff patch for pytables-1.1.1 The utility is the same as what I provided above for 1.0 and 1.1, but I've also included using either of the following object types: Numarray array Numeric array List Tuple ...(to be used as described in my prior post). I tried once again (unsuccessfully) to enable pytables.Array[key] functionality (as well as attempting to enable Table/Column/Array[key] setting functionality) for non-sequential index-array [keys]. BTW... Numeric question if someone knows.. Python 2.4.1 (#1, Jul 29 2005, 03:50:01)=20 [GCC 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Numeric=20 >>> arr =3D Numeric.array([1,2,3,4,5]) >>> type(arr) <type 'array'> >>> isinstance(arr, array) Traceback (most recent call last): File "<input>", line 1, in ? NameError: name 'array' is not defined >>> isinstance(arr, type(Numeric.array([]))) True Why is type(arr) reported as 'array', and yet isinstance() doesn't recogniz= e it? |