]> granicus.if.org Git - python/commit
This patch turns the Python API mismatch notice into a standard
authorMarc-André Lemburg <mal@egenix.com>
Tue, 31 Jul 2001 13:24:44 +0000 (13:24 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 31 Jul 2001 13:24:44 +0000 (13:24 +0000)
commite5006ebc9d0618bc500afebfa1e21b6aae2a22e3
tree021cf814e21772f87b22cac30a4aeada787085bc
parentb9d07b5a8b8b70268ffa520895e7843ab594a486
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.
Include/pyerrors.h
Makefile.pre.in
Python/modsupport.c
Python/mysnprintf.c [new file with mode: 0644]