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 7008341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:43:20+00:00 2026-05-27T21:43:20+00:00

When pycurl executes its perform() method, does the Python script wait until it gets

  • 0

When pycurl executes its perform() method,
does the Python script wait until it gets executed (WRITEFUNCTION) or python
immediately proceeds to the next line even if WRITEFUNCTION hasn’t been entered or hasn’t returned a result?
E.g.

curl.setopt(pycurl.WRITEFUNCTION, receive)
curl.perform()
some_call() # is this line immeditely executed? can I expect receive() has already exited?
  • 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-27T21:43:21+00:00Added an answer on May 27, 2026 at 9:43 pm

    pycurl is a wrapper around the C implementation (libcurl), and the C implementation calls its WRITEFUNCTION callback during the execution of it’s curl_easy_perform or curl_multi_perform functions (the equivalent of the pycurl perform).

    So you can expect your callback to have finished executing before perform returns. i.e. You can expect some_call () to be executed after receive finishes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using pycurl to upload a file via put and python cgi script to
Does Python have screen scraping libraries that offer JavaScript support? I've been using pycurl
Is there a way to write a callback function for pycurl's READFUNCTION that does
I'm a Python novice, trying to use pyCurl. The project I am working on
Here is the working code in Python (using cURL): #!/usr/bin/python import pycurl c =
Im making a small python script to upload files on the net. The script
I'm writing a simple program in Python 2.7 using pycURL library to submit file
I need to create FTP-uploader, i am using pycurl and python, but i dont
I need to perform http PUT operations from python Which libraries have been proven
Am in the process of building a quick python script to periodically check my

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.