]> granicus.if.org Git - python/commit
Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 30 Jul 2006 06:55:48 +0000 (06:55 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 30 Jul 2006 06:55:48 +0000 (06:55 +0000)
commit07aadb14f39c585a463f19ec0496860a100051ad
tree633fcc0bb9fa8edbdae49bf761c3c3ec822319c6
parent0d62a062066a4cbc8aabab9c305d60ebf7922c8c
Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
This provides the proper warning for struct.pack().
PyErr_Warn() is now deprecated in favor of PyErr_WarnEx().
As mentioned by Tim Peters on python-dev.
Include/pyerrors.h
Misc/NEWS
Modules/_struct.c
Python/errors.c