Closed astroseger closed 5 months ago
@Necr0x0Der @besSveta I've made the following changes.
py-tuple py-list py-dict and py-chain now require python tuple as a single parameter. So it will work as following:
(py-tuple (1 (2 3))) -> (1, (2,3))
(py-list (1 (2 3 ))) -> [1, [2, 3]]
(py-dict (("a" "b") ("c" "d"))) -> {"a":"b", "c" : "d"}
Unit tests were added.
py-dict will automatically convert Symbol into python string for keys:
(py-dict ((a "b"))) -> {"a" : "b"}
The most controversial change: all functions will pass non-grounded objects as it is (except Symbol for dictionary keys and Expressions in py-tuple and py-list).
It means that the function (py-list (a b))
will create python list with two symbol atoms.
This PR adds py-tuple py-list py-dict py-chain into stdlibs This PR also updates sandbox simple_import examples