0

I was wondering if it is possible to create a .py program which is capable of running Python Commands, creating new variables, much like the IDLE provided. If not what can i use to create such a programs. Essentially im creating a new language as an extension to Python. Example:

>> 1+1
>> 2
>> print "yo"
>> yo
4
  • 1
    I'm a little confused. Are you asking how to write a program that can run Python, how to extend Python, or how to write your own programming language? Commented Sep 21, 2013 at 15:33
  • Why is the standard python command line interface insufficient? Commented Sep 21, 2013 at 15:33
  • um write a program that can run python. Commented Sep 21, 2013 at 15:34
  • @Bill Eventually i will create a new language that will be based off Python. I just want to know how to create the CMD like interface for now. Commented Sep 21, 2013 at 15:35

1 Answer 1

3

Batteries included, see the code standard module (not much sense in repeating the docs in here, ask if anything's unclear). Also, both bpython and IPython are examples on how the Python core can be augmented with alternate interfaces.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.