Automatically encode unicode objects passed into cython code. This is a little ugly, but bayeslite already depends on the cython code automatically encoding strings passed as parameters. All this changes is that now strings in vectors and maps are also encoded.
Force integer division when computing indices. python2 -c 'print(4/2)' is 2, but python3 -c 'print(4/2)' is 2.0.
This passes Crosscat's check.sh under Python 2.7.6 and 3.4.3 and bayeslite's check.sh on Python 2.7.6 (Ubuntu 14.04).
unicode
objects passed into cython code. This is a little ugly, but bayeslite already depends on the cython code automatically encoding strings passed as parameters. All this changes is that now strings in vectors and maps are also encoded.python2 -c 'print(4/2)'
is 2, butpython3 -c 'print(4/2)'
is 2.0.This passes Crosscat's
check.sh
under Python 2.7.6 and 3.4.3 and bayeslite'scheck.sh
on Python 2.7.6 (Ubuntu 14.04).