Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 39301:7dc5f3ede4cd legacy-trunk
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.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 30 Jul 2006 06:55:48 +0000 |
| parents | 12e973bdfeee |
| children | 9a1288d8200f |
