[Python-Dev] Add new PyErr_WarnEx() to 2.5?

2006-05-31 Thread Tim Peters
[Ronald Oussoren, hijacking the "test_struct failure on 64 bit platforms" thread] > The really annoying part of the new struct warnings is that the > warning line mentions a line in struct.py instead the caller of > struct.pack. That makes it hard to find the source of the > warning without tellin

Re: [Python-Dev] Add new PyErr_WarnEx() to 2.5?

2006-07-10 Thread Tim Peters
As noted in http://mail.python.org/pipermail/python-dev/2006-May/065478.html it looks like we need a new Python C API function to make new warnings from the struct module non-useless. For example, runnning test_zipfile on Windows now yields """ test_zipfile C:\Code\python\lib\struct.py:63: D