Menu

#434 Interactive prompt SyntaxError display (213->214 regression)

closed-fixed
nobody
pythonwin (177)
5
2014-08-21
2009-07-08
No

SyntaxError exception output in the Interactive prompt of PythonWin fails by throwing additional exceptions.

This doesn't happen in build 213 (Python 3.0.1), so it's a 214 (3.1) regression.

For example (in 214/3.1):

>>> u''
...
File "<string>", line None
SyntaxError: invalid syntax (<interactive input>, line 1)

During handling of the above exception, another exception occurred:

...
File "...\pywin\framework\winout.py", line 465, in HandleOutput
pos = message.rfind('\n')
TypeError: expected an object with the buffer interface

During handling of the above exception, another exception occurred:

...
File "...\pywin\framework\winout.py", line 455, in QueueFlush
self.currentView.dowrite(''.join(items))
TypeError: sequence item 0: expected str instance, bytes found
==========

Discussion

  • Roger Upole

    Roger Upole - 2009-07-10

    This is fixed in interact.py v1.23.

     
  • Roger Upole

    Roger Upole - 2009-07-10
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB