You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let py =pyBuiltinsModule()
echo py.chr(65).to(int)
The chr function returns a string but the to(int) tries a conversion to int and PyLong_AsLongLong returns -1 to signal this. Checking for PyErr_Occurred or using the <type>_Check procedures may help here.
The text was updated successfully, but these errors were encountered:
LemonBoy
added a commit
to LemonBoy/nimpy
that referenced
this issue
Aug 13, 2018
A small example:
The
chr
function returns a string but theto(int)
tries a conversion to int andPyLong_AsLongLong
returns-1
to signal this. Checking forPyErr_Occurred
or using the<type>_Check
procedures may help here.The text was updated successfully, but these errors were encountered: