[wingide-users] indented blocks in debug probe

Mitchell L Model MLMConsulting at Comcast.net
Tue Dec 29 07:58:08 MST 2009


What's up with this? Typing the first line of a "with open...as" into  
the debug probe produces an error while typing the first line of a  
"for" statement does not. Note the version is 3.1.1. Is it just that  
the debug probe code hasn't been updated to understand the "with"  
syntax?

sys.version
'3.1.1 (r311:74480, Dec  9 2009, 13:35:49) \n[GCC 4.0.1 (Apple Inc.  
build 5490)]'
 >>> for n in range(2):
...     print(n)
...
0
1
 >>> with open('a.txt', 'w') as file:
Traceback (most recent call last):
File "<string>", line 2, in <fragment>
builtins.IndentationError: expected an indented block  
(<wingdb_compile>, line 2)
 >>>


More information about the wingide-users mailing list