Skip to content

Caution #1

@valq7711

Description

@valq7711

Сaution

Only variable itself is thread safe, not its content:
if there is self.x = dict(a ='foo') in one thread and self.x['a'] = 'bar' in another one (without preliminary reinitialization self.x with fresh dict), self.x['a'] will be changed everywhere, even in iceblock, since the latter is a shallow copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions