fhs/python-hdf4 — pull request #2 by bmagill1250 (2014-08-25 04:20:45+00:00)
Title: 1. In VS.py replaced the local variable slice with is_slice in the

1. function __buildStartCount. The built-in function slice is used in
the function isinstance in this function. Without the rename, at
least for version 2.7, Python will throw an error claiming that
a local variable, slice is being used in isinstance. This will
cause examples inventory_1-2.py, inventory_1-3.py, and
inventory_1-5.py to fail.

2. Increased the character buffer size for the VData field names from 256
to 4096 bytes in the SWIG interface file hdfext.i. This allows Pyhdf
to read VData records with a larger number of fields and long field
names without crashing. Also defined the constant CHAR_BUFFER_SIZE
and used in all places where the DVata field name buffer needed to be
specified. Also defined a similar constant for the attribute name
buffer. (In this case the buffer has a maximum size of 128 specified
by the underlying HDF 4 library.)

3. Although they are derived from hdfext.i,the new versions of hdfext.py
and hdfext_wrap.c have been checked in. At least on a MacMini running
OS 10.8.5 and with Python 2.7 and GCC 4.2.1, setup.py does not
automatically generate these files using SWIG. They had to be manually
generated using the command

swig -python hdfext.i

inside of the python-hdf4/hdfpy/ directory.