Correct way to create a shell in python environment?
2 answers
The standard library module cmd is used for this .
If you end up rolling your own solution, there is no need to include exec. Dictionary-to-code conversion commands must map strings to strings. It can map strings to actual functions. In fact, a class is a mapping of strings to code (method names to define methods).
+6
a source to share