This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,7 @@
|
||||
from std.python import Python
|
||||
|
||||
def main() raises:
|
||||
# Create a mixed-type Python dictionary
|
||||
var py_dict = Python.evaluate("{'a': 1, 'b': 2.71828, 'c': 'sushi'}")
|
||||
for py_tuple in py_dict.items(): # Each 2-tuple is of type "PythonObject"
|
||||
print(py_tuple[0], py_tuple[1])
|
||||
Reference in new issue
Block a user