interpreter

Python 3 Online Interpreter / Shell

Python 3 Online Interpreter / Shell Question: Is there an online interpreter like http://codepad.org/ or http://www.trypython.org/ which uses Python 3? Answer Since the question is closed, I give another answer here. Wandbox offers online REPLs for many languages, including Python 2.x and 3.x, C++ and Java. Asked By: deamon || Source Answers: I recently came …

Total answers: 2

Do comments slow down an interpreted language?

Do comments slow down an interpreted language? Question: I am asking this because I use Python, but it could apply to other interpreted languages as well (Ruby, PHP, JavaScript). Am I slowing down the interpreter whenever I leave a comment in my code? According to my limited understanding of an interpreter, it reads program expressions …

Total answers: 11

In the Python interpreter, how do you return a value without single quotes around it?

In the Python interpreter, how do you return a value without single quotes around it? Question: In the Python interpreter, how do you return a value without single quotes around it? Example: >>> def function(x): … return x … >>> function("hi") ‘hi’ I expect it to return hi instead of ‘hi’ Asked By: user176073 || …

Total answers: 2

What does PyPy have to offer over CPython, Jython, and IronPython?

What does PyPy have to offer over CPython, Jython, and IronPython? Question: From what I have seen and read on blogs, PyPy is a very ambitious project. What are some advantages it will bring to the table over its siblings (CPython, Jython, and IronPython)? Is it speed, cross-platform compatibility (including mobile platforms), the ability to …

Total answers: 4

How do I add tab completion to the Python shell?

How do I add tab completion to the Python shell? Question: When starting a django application using python manage.py shell, I get an InteractiveConsole shell – I can use tab completion, etc. Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type “help”, “copyright”, “credits” or “license” for more …

Total answers: 9