Pythonic: Difference between revisions

Jump to navigation Jump to search
123 bytes added ,  18 May 2016
→‎Python Objects in Octave: id() is something we can use as a pointer
(some notes on interface)
(→‎Python Objects in Octave: id() is something we can use as a pointer)
Line 127: Line 127:
2.  on deletion of x (`clear x`) we delete the dummy reference in Python.
2.  on deletion of x (`clear x`) we delete the dummy reference in Python.


Other ideas:
Notes:


* Store the `repr` as a string in `x`.  But this makes a copy of the object rather than a reference to the original object.
* Seems like the relevant "pointer" is {{Codeline:id()}}.  Haven't seen yet how to access an object from its id.
 
* Rejected idea: store the `repr` as a string in `x`.  But this makes a copy of the object rather than a reference to the original object.


====== Interface design ======
====== Interface design ======
99

edits

Navigation menu