Pythonic: Difference between revisions

14 bytes added ,  17 April 2016
m
Line 91: Line 91:
The python object can be manipulated by python calls like {{Codeline|pycall}} and {{Codeline|pyexec}} without needing to do an explicit conversion. For example
The python object can be manipulated by python calls like {{Codeline|pycall}} and {{Codeline|pyexec}} without needing to do an explicit conversion. For example


{{Code|Octave object that points to a python object|<syntaxhighlight lang="octave" style="font-size:13px" line>
{{Code|Octave object that points to a python object|<syntaxhighlight lang="octave" style="font-size:13px" line highlight="4">
pyexec ("import networkx as nx")
pyexec ("import networkx as nx")
pyexec ("G=nx.complete_graph(10)")
pyexec ("G=nx.complete_graph(10)")
657

edits