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

  • SEARCH
  • Home
  • 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 9109173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:58:48+00:00 2026-06-17T02:58:48+00:00

I am noticed in some python code that -u is used to start the

  • 0

I am noticed in some python code that -u is used to start the python interpreter.
I looked at the man page for python but I could not get much out of it. Please give me some examples.

  • 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-06-17T02:58:49+00:00Added an answer on June 17, 2026 at 2:58 am

    From python --help:

    -u     : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x
             see man page for details on internal buffering relating to '-u'
    

    The manpage states:

    -u     Force  stdin,  stdout and stderr to be totally unbuffered.  On systems where it matters, also put stdin,
           stdout and stderr in binary mode.  Note that there is internal buffering  in  xreadlines(),  readlines()
           and  file-object  iterators  ("for  line in sys.stdin") which is not influenced by this option.  To work
           around this, you will want to use "sys.stdin.readline()" inside a "while 1:" loop.
    

    Python opens the stdin, -out and -error streams in a buffered mode; it’ll read or write in larger chunks, keeping data in memory until a threshold is reached. -u disables those buffers.

    Also, python can interpret newlines on open files and translate them from and to the native platform newlines (text mode). The -u option disables this translation, allowing you to process binary data without having to worry about what might happen to \r\n combinations. It is the equivalent of using rb or wb modes when opening files with the open() function.

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

Sidebar

Related Questions

I've noticed that I can not use all unicode characters in my python source
I have noticed that, from Google Maps page, you can get an embed link
I'm writing some code in Visual Basic 6 and I have noticed that I
So I was writing some code and I noticed that apart from syntactical, type,
I have not used the csv module in python before, but it seems like
I noticed some confusion initially with my question. I'm not asking about how to
I noticed some similar questions about this problem when I typed the title, but
So I've noticed some very weird behaviour from my program. Here's a simplified code
I'm looking into writing simple graphics code in Android and I've noticed some synchronized()
Possible Duplicate: Variable assignment and modification (in python) I just noticed that variable assignation

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.