Skip to content

functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking #87634

@ztane

Description

@ztane
mannequin
BPO 43468
Nosy @tim-one, @rhettinger, @ncoghlan, @pitrou, @carljm, @jab, @serhiy-storchaka, @ztane, @graingert, @youtux
PRs
  • bpo-43468: Per instance locking for functools.cached_property  #27609
  • 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 = None created_at = <Date 2021-03-11.06:37:47.884> labels = ['3.8', 'library', '3.9', '3.10', 'performance'] title = 'functools.cached_property incorrectly locks the entire descriptor on class instead of per-instance locking' updated_at = <Date 2021-09-07.16:52:45.061> user = 'https://github.com/ztane'

    bugs.python.org fields:

    activity = <Date 2021-09-07.16:52:45.061> actor = 'pitrou' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2021-03-11.06:37:47.884> creator = 'ztane' dependencies = [] files = [] hgrepos = [] issue_num = 43468 keywords = ['patch'] message_count = 11.0 messages = ['388480', '388499', '388592', '398290', '398291', '398680', '398686', '398719', '398837', '398861', '401308'] nosy_count = 11.0 nosy_names = ['tim.peters', 'rhettinger', 'ncoghlan', 'pitrou', 'carljm', 'pydanny', 'jab', 'serhiy.storchaka', 'ztane', 'graingert', 'youtux'] pr_nums = ['27609'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'resource usage' url = 'https://bugs.python.org/issue43468' versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.12only security fixesperformancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions