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

Re: [pygame] Color slice problem with Python 3



hi,

I get that with python3 too.

There's no information in the python docs about this API break.  Haven't been able to find out anything online anywhere either.

Seems to be the same error you get when there's nothing in there about it being a sequence type.

Py_TPFLAGS_HAVE_SEQUENCE_IN isn't in py3k anymore... and sq_slice doesn't seem to be either.  Can't find any documentation about why, or what to do.


Needs more investigation.


cu,



On Mon, Jul 6, 2009 at 7:03 AM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
Hi,

The Color unit test is failing for Python 3.1:

======================================================================
ERROR: ColorTypeTest.test_slice
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/lenard/.local/lib/python3.1/site-packages/pygame/tests/color_test.py", line 225, in test_slice
  self.assertEquals((1,2,3,4), c[:])
TypeError: sequence index must be integer, not 'slice'


Lenard Lindstrom