Skip to content

Add Color.copy() and Color.__copy__() methods #3553

@aatle

Description

@aatle

Mutable collections almost always have a .copy() method.
It can be faster and more direct than using the (overloaded) constructor to copy.

__copy__ should also be added, for a more efficient copy.copy(). (note it is already supported via the copyreg registration used for color pickling.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions