Pythonic: Difference between revisions
Jump to navigation
Jump to search
(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. | ||
Notes: | |||
* | * 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 ====== |