moohaad / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Strange problem about Excute Selection (Ctrl+F7) #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
write a code block like below:
try:
    a=1/0
except Exception:
    print("Opps!")
After select all and press Ctrl+F7,Expected output should be:Opps! 
But there is nothing.

if append a line,such as "x=100", or even a line feed to block above,
"Opps!" come back.

pyscripter 1.96/Python 3.01/Windows server 2003 (zh-hans)

Original issue reported on code.google.com by xiepeng...@gmail.com on 6 Mar 2009 at 2:09

GoogleCodeExporter commented 9 years ago
See two blocks below:
code block 1:
#-----------------------
try:
    a=1/0
except Exception:
    print("Opps!")
x=100
#-----------------------
code block 2:
#------------------------
try:
    a=1/0
except Exception:
    print("Opps!")
    x=100
#------------------------

Only block 1 output "Opps!". Block 2 output nothing, it seems that the "Exceute 
Selection" think the "try...except" block unclosed.

Original comment by xiepeng...@gmail.com on 6 Mar 2009 at 2:46

GoogleCodeExporter commented 9 years ago
Fixed in version control.

Original comment by pyscripter on 17 May 2009 at 11:16

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 30 Sep 2010 at 3:09