ivanov / bipython

The indiscriminate bicurious interactive python interpreter (bpython + ipython)
BSD 3-Clause "New" or "Revised" License
99 stars 15 forks source link

bipython prints more lines than ipython, and many more than bpython #15

Open yump opened 10 years ago

yump commented 10 years ago

I'm seeing a lot of blank lines that don't appear in ipython or bpython, and statements that don't produce any output sometimes get echoed. Sometimes not. I can't figure out exactly what circumstances cause the echoing. Example:

bpython:

>>> import time
>>> time.sleep(1)
>>> 

ipython:

In [1]: import time

In [2]: time.sleep(1)

In [3]: 

bipython:

In [1]: import time

In [3]: time.sleep(1)

In [3]: time.sleep(1)  #white

In [3]:                #blue

In [4]:                #blue

Entering empty statements also produces the echoing:

In [6]: 1   #blue

Out[6]: 1   #red

In [7]:     #blue

In [7]:     #white

In [7]:     #blue

In [7]:     #white

In [7]:     #blue
ivanov commented 10 years ago

thanks for the report and for bringing this to my attention - confirming this as an issue. The extra blank lines come from trying to create space for the Out prompts, which don't always appear, I'll try to hone in on this.