Why doesn't IPython return anything from an if statement? -


i'm writing statements in ipython should return something, don't. example, if statement:

in [1]: 1 out[1]: 1  in [2]: if true: 1  in [3]:  

and same thing happens for statements:

in [3]: in [1]:  in [4]:  

meanwhile in regular python interpreter, works expected:

>>> if true: 1 ...  1 >>> in [1]: ...  1 

i've tested on ipython 1.2.1 (update: , 6.1.0) on ubuntu 14.04 , 4.1.2 on pythonanywhere, python 2 , 3.

is behaviour intentional? if yes, what's purpose?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -