Mercurial > cpython-lru_cache-weakref
diff Python/future.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 | 75a7106662a3 |
| children | f3c1f9c8ce9f |
