Skip to content

Wrong documentation for rfc822.Message.getheader #45352

Closed

Description

@nirs
mannequin
BPO 1011
Nosy @birkenfeld, @nirs

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 = 'https://github.com/birkenfeld'
closed_at = <Date 2007-08-24.17:23:42.100>
created_at = <Date 2007-08-24.13:33:45.344>
labels = ['docs']
title = 'Wrong documentation for rfc822.Message.getheader'
updated_at = <Date 2007-08-24.17:23:42.098>
user = 'https://github.com/nirs'

bugs.python.org fields:

activity = <Date 2007-08-24.17:23:42.098>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2007-08-24.17:23:42.100>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2007-08-24.13:33:45.344>
creator = 'nirs'
dependencies = []
files = []
hgrepos = []
issue_num = 1011
keywords = []
message_count = 2.0
messages = ['55254', '55261']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'nirs']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1011'
versions = ['Python 2.5']

Activity

  1. nirs commented on Aug 24, 2007

    nirsmannequin
    MannequinAuthor

    In http://docs.python.org/lib/message-objects.html, getheader doc say:

    "Like getrawheader(name), but strip leading and trailing whitespace.
    Internal whitespace is not stripped. The optional default argument can
    be used to specify a different default to be returned when there is no
    header matching name."

    However, getheader is not like getrawheader. getheader return the *last*
    header seen, using the message dict. getrawheader retruns the *first*
    header line seen, searching through the list of parsed header lines.

    The text should also note that getheader is faster and the preferred way
    to get parsed headers.

  2. added
    docsDocumentation in the Doc dir
    on Aug 24, 2007
  3. birkenfeld commented on Aug 24, 2007

    @birkenfeld
    Member

    Thanks, fixed in rev. 57395.

  4. self-assigned this
    on Aug 24, 2007
  5. 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

Labels

docsDocumentation in the Doc dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions