Skip to content

BaseCookie.load doesn't create Morsel objects for mappings #49525

Closed

Description

@eggy
mannequin
BPO 5275
Nosy @birkenfeld

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-09-04.08:17:17.607>
created_at = <Date 2009-02-15.22:49:50.018>
labels = ['type-bug']
title = "BaseCookie.load doesn't create Morsel objects for mappings"
updated_at = <Date 2009-09-04.08:17:17.605>
user = 'https://bugs.python.org/eggy'

bugs.python.org fields:

activity = <Date 2009-09-04.08:17:17.605>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2009-09-04.08:17:17.607>
closer = 'georg.brandl'
components = []
creation = <Date 2009-02-15.22:49:50.018>
creator = 'eggy'
dependencies = []
files = []
hgrepos = []
issue_num = 5275
keywords = []
message_count = 2.0
messages = ['82177', '92243']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'eggy']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5275'
versions = ['Python 2.6', 'Python 2.5', 'Python 2.4', 'Python 3.0', 'Python 3.1', 'Python 2.7']

Activity

  1. eggy commented on Feb 15, 2009

    eggymannequin
    MannequinAuthor

    The load method, which is also called from the initializer if input is
    provided, doesn't create Morsel objects for things other than strs,
    because it calls self.update(rawdata), which does not invoke the custom
    __setitem__.

    The documentation states that when rawdata is not a string, it must be a
    dictionary and providing that will be equivalent to doing

    for k, v in rawdata.items():
        cookie[k] = v

    So that is what it should do :)

  2. added
    type-bugAn unexpected behavior, bug, or error
    on Feb 15, 2009
  3. birkenfeld commented on Sep 4, 2009

    @birkenfeld
    Member

    Thanks, fixed in r74647.

  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

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions