[issue40651] class:`OrderedDict` Examples: LRU implementation has a bug.

New submission from Dongfang Qu <qudongfang@gmail.com>: class:`OrderedDict` Examples: LRU implementation has a bug. Details: The calls to the `__setitem__` method should also count as usages. ---------- assignee: docs@python components: Documentation messages: 369083 nosy: Dongfang Qu, docs@python priority: normal severity: normal status: open title: class:`OrderedDict` Examples: LRU implementation has a bug. _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Dongfang Qu <qudongfang@gmail.com> added the comment: Document of `collections`. https://docs.python.org/3/library/collections.html ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Change by Dongfang Qu <qudongfang@gmail.com>: ---------- keywords: +patch pull_requests: +19445 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20139 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: New changeset bb8635cc3bc3dd65996803849ee1a91cfbebae9c by qudongfang in branch 'master': bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139) https://github.com/python/cpython/commit/bb8635cc3bc3dd65996803849ee1a91cfbe... ---------- nosy: +rhettinger _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19466 pull_request: https://github.com/python/cpython/pull/20167 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: Thanks for PR :-) ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________

Raymond Hettinger <raymond.hettinger@gmail.com> added the comment: New changeset d88f0aa8e24ea7562f2e04833f46d8526e846334 by Miss Islington (bot) in branch '3.8': bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-GH-20139) (GH-20167) https://github.com/python/cpython/commit/d88f0aa8e24ea7562f2e04833f46d8526e8... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue40651> _______________________________________
participants (3)
-
Dongfang Qu
-
miss-islington
-
Raymond Hettinger