Skip to content

Clarify threading documentation: atomic list.append #481

@mdickinson

Description

@mdickinson

Some confusion was reported with regard to this sentence in the threading docs:

For example, list.append may happen to be atomic in current versions of CPython, but there’s no guarantee that that will remain the case, and you may find that your code is actually working with a subclass of list (like TraitList) for which append is not thread-safe.

The sentence could be broken up, and it should be rephrased to make clear that "working" does not mean "functioning correctly", but rather something along the lines of "dealing with".

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: documentationIssues related to developer and user documentationtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions