I'm using pyshp for creating a shapefile. I need to populate tens of fields with values using the record() method of shapefile.Writer. I have those values as a list, but have no idea how to send it to the method without enumerating them as w.record(values[0], values[1], etc.).


1 Answer 1


Found an answer after mailing to the author of this library: just use w.record(*attrs).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.