Repository navigation
Commit 949f894
committed
use self.payload[:self.payload_len] for getting python string
This is more Cythonic way, documented here
http://cython.readthedocs.io/en/latest/src/tutorial/strings.html#passing-byte-strings
It compiles to
__Pyx_PyBytes_FromStringAndSize(
__pyx_v_self->payload + 0,
__pyx_v_self->payload_len - 0)
Which is the Cython macro wrapper which handles both Python 2 and
Python3.
Fixes oremanj#171 parent 9c74558 commit 949f894
2 files changed
Lines changed: 385 additions & 426 deletions
0 commit comments