Skip to content

Instantly share code, notes, and snippets.

@lateefj
Last active August 29, 2015 14:16
Show Gist options
  • Save lateefj/7364f68724f6f377933f to your computer and use it in GitHub Desktop.
Save lateefj/7364f68724f6f377933f to your computer and use it in GitHub Desktop.
Simple Python import
import nimborg/py/low_level
import nimborg/py/high_level
let pystring = pyImport("string")
let pydigits = pystring.digits
var pyObj: PPyObject = pydigits
echo(PyList_Size(pyObj))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment