makepy error messages broken in win32all build 135

Alex Martelli aleaxit at yahoo.com
Wed Oct 25 09:37:00 EDT 2000


D:\Python20\win32com\client>python makepy.py -help
Traceback (most recent call last):
  File "makepy.py", line 357, in ?
    rc = main()
  File "makepy.py", line 329, in main
    sys.stderr.write (msg + "\n")
TypeError: __add__ nor __radd__ defined for these operands

D:\Python20\win32com\client>


"msg", which makepy.py just obtained with a line of
    except (getopt.error, error), msg:
is an instance of class getopt.GetoptError, and has
no __add__ method.  (I guess msg must have used to be
a string at some point, but surely that was a while
ago...?).

An easy fix is to change line 329 to
    sys.stderr.write(str(msg) + "\n")


I have not checked whether similar problems exist in
other win32all utilities.

P.S.: what IS the correct place to submit bug reports,
workarounds, patches, etc, for win32all...?


Alex






More information about the Python-list mailing list