Skip to content

Various obvious errors in cookies documentation #55210

Closed

Description

@spookylukey
BPO 11001
Nosy @gpshead, @bitdancer, @akheron, @miss-islington, @Julsy
PRs
  • bpo-11001: updated cookie docs #13086
  • [3.7] bpo-11001: updated cookie docs (GH-13086) #13161
  • Files
  • http_cookies_doc_corrections.diff: Patch to docs
  • 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 2019-05-07.17:34:46.872>
    created_at = <Date 2011-01-24.22:27:44.999>
    labels = ['easy', '3.7', '3.8', 'docs']
    title = 'Various obvious errors in cookies documentation'
    updated_at = <Date 2019-05-07.17:34:46.865>
    user = 'https://bugs.python.org/spookylukey'

    bugs.python.org fields:

    activity = <Date 2019-05-07.17:34:46.865>
    actor = 'gregory.p.smith'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2019-05-07.17:34:46.872>
    closer = 'gregory.p.smith'
    components = ['Documentation']
    creation = <Date 2011-01-24.22:27:44.999>
    creator = 'spookylukey'
    dependencies = []
    files = ['20507']
    hgrepos = []
    issue_num = 11001
    keywords = ['patch', 'easy']
    message_count = 8.0
    messages = ['126962', '126979', '223449', '223458', '341403', '341778', '341788', '341789']
    nosy_count = 7.0
    nosy_names = ['gregory.p.smith', 'r.david.murray', 'docs@python', 'spookylukey', 'petri.lehtinen', 'miss-islington', 'jiliuk']
    pr_nums = ['13086', '13161']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue11001'
    versions = ['Python 2.7', 'Python 3.7', 'Python 3.8']

    Activity

    1. spookylukey commented on Jan 24, 2011

      spookylukeymannequin
      MannequinAuthor

      Docs for SimpleCookie, BaseCookie.value_encode and BaseCookie.value_decode are obviously incorrect. Attempt at patch attached.

      The error has existed in every Python version I've seen, I've tagged the ones I believe can receive fixes, sorry if I've made a mistake.

      Thanks.

    2. added
      docs
      on Jan 24, 2011
    3. bitdancer commented on Jan 25, 2011

      @bitdancer
      Member

      The text in the docstrings appears to be accurate, and it seems to me they clarify it even more than your suggested changes do. Also, I think SimpleCookie's encode/decode roughly implements some RFC or another (though there are some tweaks), and it might be worth mentioning that.

      Even with these changes, though, I don't think it is possible to really understand what cookie is doing without reading the source, and even then it is non-obvious :(

    4. BreamoreBoy commented on Jul 18, 2014

      BreamoreBoymannequin
      Mannequin

      Given the comments in msg126979 do we formally review this, close as "won't fix" or what?

    5. bitdancer commented on Jul 19, 2014

      @bitdancer
      Member

      My suggestion was that the help text from the doc strings be used to update the ReST documentation.

    6. Julsy commented on May 4, 2019

      Julsymannequin
      Mannequin

      Working on it at the moment

    7. added
      3.7 (EOL)
      3.8 (EOL)
      on May 4, 2019
    8. miss-islington commented on May 7, 2019

      @miss-islington
      Contributor

      New changeset 91cc01f by Miss Islington (bot) (Julia Iliuk) in branch 'master':
      bpo-11001: updated cookie docs (GH-13086)
      91cc01f

    9. miss-islington commented on May 7, 2019

      @miss-islington
      Contributor

      New changeset 1fe722c by Miss Islington (bot) in branch '3.7':
      [3.7] bpo-11001: updated cookie docs (GH-13086) (GH-13161)
      1fe722c

    10. gpshead commented on May 7, 2019

      @gpshead
      Member

      Thanks Julia!

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

      3.7 (EOL)3.8 (EOL)docseasy

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions