[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] BUG:? color incompatibility in pygame 1.8.1release versus 1.7.1release



I will update the tests.

If the new Color.__doc__ claims case insensitivity then I will put in a failing test.

The author of the module wrote some tests for webstyle arguments to the Color constructor that explicitly tested for 0 as the default alpha so I'm not sure there.

Actually there seems to be some internal inconsistencies as:

In [2]: pygame.Color(0,0,0)
Out[2]: (0, 0, 0, 255)

In [3]: pygame.Color("#000000")
Out[3]: (0, 0, 0, 0)

What is the policy regarding backwards compatibility with 1.7.1? Should I put in tests for the old functions as well?

Summary:

Color construction from string, case insensitivity
WebStyle default alpha
Module level functions