Bug 499393 - Indented blocks of code make bpython unusable
Summary: Indented blocks of code make bpython unusable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bpython
Version: rawhide
Hardware: i586
OS: Linux
low
high
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-06 14:06 UTC by Matteo Castellini
Modified: 2009-05-18 11:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 11:12:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matteo Castellini 2009-05-06 14:06:47 UTC
Description of problem:
bpython stops interpreting code interactively when entering an indentend block of code and doesn't exit from it. AFAICT this happens only on i586 systems, while bpython works smoothly on x86_64 systems.

Version-Release number of selected component (if applicable):
bpython-0.7.1-3.fc11.noarch
python-2.6-7.fc11.i586

How reproducible: 
Always

Steps to Reproduce:
1. $ bpython
2. Run the following code:
for i in range(2):
    print i
  
Actual results:
>>> for i in range(2):
...     print i
...     
...     
... 

Expected results:
>>> for i in range(2):
...     print i
... 
0
1
>>>

Additional info:
Neither pressing Control-d nor Control-c help exiting the indented block

Comment 1 Terje Røsten 2009-05-06 20:56:32 UTC
Try to use DEL key, that works here.

>>> for i in range(2):
...     print i
...             <- Press DEL here, and then ENTER.
0
1

Comment 2 Matteo Castellini 2009-05-06 21:37:01 UTC
Yes, deleting the indented space and pressing ENTER solves the problem, but is it supposed to work this way?

Comment 3 Terje Røsten 2009-05-18 08:46:27 UTC
Unsure, I have sent a mail upstream.

Comment 4 Terje Røsten 2009-05-18 11:12:33 UTC
According to author, this is expected behaviour from bpython. I agree.


Note You need to log in before you can comment on or make changes to this bug.