Skip to content

cgi.py should document the need for binary stdin/stdout #54689

Closed

Description

@vpython
mannequin
BPO 10480

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2011-01-31.04:45:51.924>
created_at = <Date 2010-11-21.05:43:08.287>
labels = ['type-bug', 'library', 'docs']
title = 'cgi.py should document the need for binary stdin/stdout'
updated_at = <Date 2011-01-31.04:45:51.923>
user = 'https://bugs.python.org/vpython'

bugs.python.org fields:

activity = <Date 2011-01-31.04:45:51.923>
actor = 'v+python'
assignee = 'docs@python'
closed = True
closed_date = <Date 2011-01-31.04:45:51.924>
closer = 'v+python'
components = ['Documentation', 'Library (Lib)']
creation = <Date 2010-11-21.05:43:08.287>
creator = 'v+python'
dependencies = []
files = []
hgrepos = []
issue_num = 10480
keywords = []
message_count = 2.0
messages = ['121868', '127575']
nosy_count = 2.0
nosy_names = ['v+python', 'docs@python']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue10480'
versions = ['Python 3.2']

Activity

  1. vpython commented on Nov 21, 2010

    vpythonmannequin
    MannequinAuthor

    CGI is a bytestream protocol. Python assumes a text mode encoding for stdin and stdout, this is inappropriate for the CGI interface.

    CGI should provide an API to "do the right thing" to make stdin and stout binary mode interfaces (including mscvrt setting to binary on Windows). Failing that, it should document the need to do so in CGI applications.

    Failing that, it should be documented somewhere, CGI seems the most appropriate place to me.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    docsDocumentation in the Doc dir
    on Nov 21, 2010
  3. vpython commented on Jan 31, 2011

    vpythonmannequin
    MannequinAuthor

    Fixed by bpo-10841 and bpo-4953.

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions