Create a new python object
(&self, value: impl ToPyObject)
| 37 | impl VirtualMachine { |
| 38 | /// Create a new python object |
| 39 | pub fn new_pyobj(&self, value: impl ToPyObject) -> PyObjectRef { |
| 40 | value.to_pyobject(self) |
| 41 | } |
| 42 | |
| 43 | pub fn new_tuple(&self, value: impl IntoPyTuple) -> PyTupleRef { |
| 44 | value.into_pytuple(self) |