- changed status to resolved
Stackless 3: stackless.cstack.__str__ raises UnicodeDecodeError
Issue #102
resolved
I just discovered the following bug in Stackless 3.x
import stackless str(stackless.main.cstate)
raises UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 4: invalid start byte
Probably fairly simple to fix.
Comments (1)
-
reporter - Log in to comment
I fixed stackless.cstack.__str__ for Python 3.3 and newer. Now it returns the stack decoded as iso-8859-1 byte string.
Additionally I added a read-only attribute stackless.cstack.nesting_level and a few test cases. The attribute cstack.nesting_level can be used in test code to order multiple cstack objects belonging to the same tasklet.
Changesets: