Python Javascript Shenanigans
dngrrng opened this issue · comments
Hi,
I've been fiddling with using base2048 using js2py. I can get the encode to work, but the decode is returning an empty list?
My python is as following:
import js2py
from js2py import require
base2048 = require('base2048')
t = [1, 2, 4, 8, 16, 32, 64, 128] # 'GƸOʜeҩ'
print(t)
a = base2048.encode(t)
print(a)
b = base2048.decode(a)
print(b)
And returns:
[1, 2, 4, 8, 16, 32, 64, 128]
GƸOʜeҩ
[]
Was wondering if you had any idea what's happening? I can't tell if its a js2py or base2048 thing - but decode seems to work in the sense that it doesn't like taking non-strings.
Thanks for the time
Looks like js2py does not support uint8Array2s