Bug: Typed Memoryview and unicode string typ
Feb. 1, 2016
10:56 p.m.
Hi, First off all thanks to all of you for this awesome tool, it is working great and I love it :) Also the idea looks cool, I haven't been able to use typed memories views as they seem broken for my setup: Cython 0.23.4 Python 3.4 (and 3.5) Compiler directive: c_string_type=unicode (which should be the same as str in Python 3.x) Steps: cdef int* ptr = <int*>malloc(sizeof(int) * 10) memView = <int[:n]>ptr Result: Compiles, but will raise a TypeError('expected bytes, str found') at runtime I attached a minimal example. Note that if you change the c_string_type to 'bytes' it will work fine. Best Marvin
3823
Age (days ago)
3823
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marvin Ritter