Skip to content

Module wsgiref is not python3000 ready (unicode issues) #48772

Closed

Description

@tordmor
mannequin
BPO 4522
Nosy @pjeby, @amauryfa, @pitrou
Superseder
  • bpo-4718: wsgiref package totally broken
  • Files
  • handlers.diff: preliminary patch
  • 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 2009-01-01.02:38:33.724>
    created_at = <Date 2008-12-04.11:18:21.288>
    labels = ['library', 'performance']
    title = 'Module wsgiref is not python3000 ready (unicode issues)'
    updated_at = <Date 2009-01-01.02:38:33.595>
    user = 'https://bugs.python.org/tordmor'

    bugs.python.org fields:

    activity = <Date 2009-01-01.02:38:33.595>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-01-01.02:38:33.724>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2008-12-04.11:18:21.288>
    creator = 'tordmor'
    dependencies = []
    files = ['12216']
    hgrepos = []
    issue_num = 4522
    keywords = ['patch']
    message_count = 5.0
    messages = ['76879', '76950', '77063', '77082', '78684']
    nosy_count = 4.0
    nosy_names = ['pje', 'amaury.forgeotdarc', 'pitrou', 'tordmor']
    pr_nums = []
    priority = 'critical'
    resolution = 'duplicate'
    stage = 'patch review'
    status = 'closed'
    superseder = '4718'
    type = 'resource usage'
    url = 'https://bugs.python.org/issue4522'
    versions = ['Python 3.0']

    Activity

    1. tordmor commented on Dec 4, 2008

      tordmormannequin
      MannequinAuthor

      wsgiref.handlers.py tries to send strings where bytes is necessary in
      accordance with PEP-333 the attached patch encodes everything with
      ISO-8859-1.

      Additionally the patch from bpo-3348 has to be applied.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Dec 4, 2008
    3. amauryfa commented on Dec 5, 2008

      @amauryfa
      Contributor

      The patch is incomplete: it breaks test_wsgiref.

    4. tordmor commented on Dec 5, 2008

      tordmormannequin
      MannequinAuthor

      The test uses StringIO. I don't understand the test enough to change
      that. If I understand the WSGI spec correctly then it would be the test
      that's wrong.

    5. amauryfa commented on Dec 5, 2008

      @amauryfa
      Contributor

      The test should indeed be changed. You may want to use io.BytesIO
      instead.
      In any case this test looks like a standard usage of the library. Please
      make it as pleasant-looking as possible.

    6. pitrou commented on Jan 1, 2009

      @pitrou
      Member

      Resolution is more advanced in bpo-4718.

    7. 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

      performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions