GeospatialPython / pyshp

This library reads and writes ESRI Shapefiles in pure Python.
MIT License
1.1k stars 260 forks source link

Error in accessing record content in shapefile.Shaperecord object #176

Closed alexandrutarna closed 5 years ago

alexandrutarna commented 5 years ago

https://github.com/GeospatialPython/pyshp/blob/85b534c166acddd4e2dc322402fc6f952fd7a1da/shapefile.py#L471 I am getting an error when I try to access the elements of the record. Even if I just try to view the records in the debugger I get the error shown in the image below.

image

karimbahgat commented 5 years ago

Seems like this method didn't account for that in Python 3, calling dict.values() returns a dictvalues iterator rather than a list. Fixed now, plus better autocomplete results.

karimbahgat commented 5 years ago

Fixed in version 2.1.0