# NOT RUN {
if ( pyIsConnected() ){
pyExec("import os")
os <- pyObject("os", regFinalizer = FALSE)
ls(os)
## To show again the difference between pyGet and pyGet0.
os1 <- pyGet0("os") ## has no finalizer
os2 <- pyGet("os") ## has a finalizer
os$py.variableName
os1$py.variableName
os2$py.variableName
}
# }
Run the code above in your browser using DataLab