diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-30 06:55:48 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-30 06:55:48 (GMT) |
commit | 07aadb14f39c585a463f19ec0496860a100051ad (patch) | |
tree | 633fcc0bb9fa8edbdae49bf761c3c3ec822319c6 /Misc | |
parent | 0d62a062066a4cbc8aabab9c305d60ebf7922c8c (diff) | |
download | cpython-07aadb14f39c585a463f19ec0496860a100051ad.zip cpython-07aadb14f39c585a463f19ec0496860a100051ad.tar.gz cpython-07aadb14f39c585a463f19ec0496860a100051ad.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ What's New in Python 2.5 beta 3? Core and builtins ----------------- +- 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(). + - Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions. |