comparison Python/exceptions.c @ 18908:79c676f9b34a legacy-trunk

This patch turns the Python API mismatch notice into a standard Python warning which can be catched by means of the Python warning framework. It also adds two new APIs which hopefully make it easier for Python to switch to buffer overflow safe [v]snprintf() APIs for error reporting et al. The two new APIs are PyOS_snprintf() and PyOS_vsnprintf() and work just like the standard ones in many C libs. On platforms which have snprintf(), the native APIs are used, on all other an emulation with snprintf() tries to do its best.
author Marc-André Lemburg <mal@egenix.com>
date Tue, 31 Jul 2001 13:24:44 +0000
parents 32e7d0898eab
children 09df3254b49d
comparison
equal deleted inserted replaced
18907:443a8622e851 18908:79c676f9b34a