From 84ad41397d0836bea51a9d278f82b96dec53831e Mon Sep 17 00:00:00 2001 From: "Dr. Irv" Date: Mon, 11 Jun 2018 16:07:56 -0400 Subject: [PATCH] Update intro.rst Fix example for interfaces --- doc/intro.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/intro.rst b/doc/intro.rst index 3380cd5f6c..0054f634a9 100644 --- a/doc/intro.rst +++ b/doc/intro.rst @@ -90,11 +90,8 @@ then we can call the Python code from Java as follows :: // Import the Python module PyModule plugInModule = PyLib.importModule("bibo_plugin"); - // Get the Python class - PyObject plugInClass = plugInModule.getAttribute("BiboPlugIn"); - // Call the Python class to instantiate an object - PyObject plugInObj = plugInClass.call(); + PyObject plugInObj = plugInClass.call("BiboPlugin"); // Create a Java proxy object for the Python object PlugIn plugIn = plugInObj.createProxy(PlugIn.class);