Pythonic: Difference between revisions

1 byte added ,  27 December 2019
Line 30: Line 30:
=== Python from Octave ===
=== Python from Octave ===


The conversion of Python's dict is not unique. For that we have decided to load a Python's dict as a structure. This works only when all the keys fo the dict are strings. When the keys are something else there is the option to use `repr` to create the fields of the Octave's struct, e.g.
The conversion of Python's dict is not unique. For that we have decided to load a Python's dict as a structure. This works only when all the keys for the dict are strings. When the keys are something else there is the option to use `repr` to create the fields of the Octave's struct, e.g.


<!-- {{SyntaxHighlight| -->
<!-- {{SyntaxHighlight| -->
Anonymous user