The current branch of pyshp has removed the Editor class that combines reading and writing records. The justification is that removing the Editor has been planned for a while now, and might as well remove along with the other major new changes. Is there any way I can call a shapefile.Writer object and invoke a records() type functionality that lists all present records in the writer object? The only records introspection in pyshp currently is the .shpNum property that is just an incrementor:

def __dbfRecord(self, record):
    """Writes the dbf records."""
    f = self.__getFileObj(self._dbf)
    self.recNum += 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.