Pythonic: Difference between revisions

342 bytes added ,  16 August 2016
→‎Known Problems: add function handle problems
(→‎Known Problems: new section)
(→‎Known Problems: add function handle problems)
Line 177: Line 177:
[y{1:3}] = x{1:3};
[y{1:3}] = x{1:3};
</syntaxhighlight>}}</li>
</syntaxhighlight>}}</li>
<li>Function handles to Python functions, bound methods, or other callable objects is not yet supported. As a workaround, the {{Codeline|pyeval}} function can be used to return a reference to a function which can be assigned and called like any Octave function handle, but cannot be passed in to functions that expect a function handle.</li>
<li>Objects are not deleted because object destructors are not called by Octave when objects are cleared or go out of scope. For the Python interface, this means that the internal store of objects will continue to grow and objects will persist indefinitely even when all Octave references to a given Python object are gone. This is Octave bug {{Bug|46497}}.</li>
<li>Objects are not deleted because object destructors are not called by Octave when objects are cleared or go out of scope. For the Python interface, this means that the internal store of objects will continue to grow and objects will persist indefinitely even when all Octave references to a given Python object are gone. This is Octave bug {{Bug|46497}}.</li>
</ul>
</ul>
296

edits