Skip to content

Remove color.set_length() entirely (3393) #1671

Open
@GalacticEmperor1

Description

@GalacticEmperor1

Issue №3393 opened by MyreMylar at 2022-08-14 11:28:46

This function has been deprecated and now produces deprecation warnings when running some of the tests (e.g. color_test.py and pixel_copy_test.py). It's fair to have a test for the deprecation warning while the function still exists, and perhaps some tests of it's functionality (perhaps filtered for warnings) - but we should probably try to excise it from unrelated tests at least.

set_length() didn't actually do much, it didn't even clear the data from channels, just blocked access when using index based access so probably it can just be deleted in many places, but some care and attention will be needed.


Comments

# # gresm commented at 2022-08-17 13:53:21

I'm interested on working at this issue.


# # B-Salinas commented at 2022-11-14 06:05:37

@gresm is this still being worked on? I'd love to jump in, new to open-source


# # gresm commented at 2022-11-14 08:30:17

@B-Salinas It somewhat is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    colorpygame.color

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions