Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7567275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:37:31+00:00 2026-05-30T14:37:31+00:00

The function record() in the pyshp module expects a sequence as input: outfile.record(‘First’,’Second’,’Third’) What

  • 0

The function record() in the pyshp module expects a sequence as input:

outfile.record('First','Second','Third')

What I have is a list:

row = ['First','Second','Third']

When I call the record() function like this:

outfile.record(row)

I get a tuple index out of range error. It turns out the function receives

(['First','Second','Third'],)

How do I call record correctly?
I have tried

outfile.record((row[i] for i in range(len(row)))

but that doesn’t work either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:37:33+00:00Added an answer on May 30, 2026 at 2:37 pm
    outfile.record(*row)
    

    This will unpack a sequence into individual arguments. This is a formal description of this syntax from the language reference, and this is an informal description from the tutorial.

    Note there is a similar construct which will unpack a mapping (dict) into keyword arguments:

    functiontakingkeywordarguments(**mydict)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list: { xtype: 'list', itemTpl: '{name}', sorters: 'name', getGroupString: function(record) {
i have a function like this: function record(){ $table = new table; $clogin =
I have this function: CREATE OR REPLACE FUNCTION CREATE_AIRSPACE_AVAILABILITY_RECORD (cur_user VARCHAR, start_time VARCHAR, start_date
I have written a function that gets a given number of random records from
I have a function which calculates distance from database records. This function is called
i have a .js file where i show a list of pools. And when
I have a list and I cant get items in the list to be
I have a list of contacts that sencha touch is displaying in a list.
I have a data table populated from a MySQL database via PHP. The first
Is there a debugging system that allows me to record javascript function calls and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.