Small bug (assertion error) in PythonWin

Carlos Ribeiro cribeiro at mail.inet.com.br
Sat May 5 12:24:41 EDT 2001


Hi. That's my bug description:

I was editing a new script (only two lines inserted). I called the help to 
check some syntax information. When I switched back to the Pythonwin 
environment, I just typed the import line, and pressed <enter>, when I got:

 >>> Firing event '<<newline-and-indent>>' failed.
Traceback (most recent call last):
   File "F:\Python21\Pythonwin\pywin\scintilla\bindings.py", line 141, in fire
     rc = apply(binding.handler, args)
   File "F:\Python21\Pythonwin\pywin\idle\AutoIndent.py", line 262, in 
newline_and_indent_event
     y.set_str(rawtext)
   File "F:\Python21\Pythonwin\pywin\idle\PyParse.py", line 115, in set_str
     assert len(str) == 0 or str[-1] == '\n'
AssertionError

It was not a fatal error. Anyway, assertions are here to signal a problem, 
isn't? My version information is:

PythonWin 2.1 (#15, Apr 23 2001, 18:00:35) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (MarkH at ActiveState.com) - see 
'Help/About PythonWin' for further copyright information.


Carlos Ribeiro






More information about the Python-list mailing list