summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-08-29 01:16:54 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-08-29 01:16:54 (GMT)
commit0ab31b85620b1ccc2617f4eeeeb151dab4d5abda (patch)
tree2e93b1b7e1cb0e36aa71c167d2929e5153dd327c /Doc
parent19ef62d5a98111df15400db22d18a3a555f5f1ff (diff)
downloadcpython-0ab31b85620b1ccc2617f4eeeeb151dab4d5abda.zip
cpython-0ab31b85620b1ccc2617f4eeeeb151dab4d5abda.tar.gz
cpython-0ab31b85620b1ccc2617f4eeeeb151dab4d5abda.tar.bz2
Add METH_O and METH_NOARGS change
Rewrite snprintf() item a bit Bump version number
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/whatsnew22.tex28
1 files changed, 19 insertions, 9 deletions
diff --git a/Doc/whatsnew/whatsnew22.tex b/Doc/whatsnew/whatsnew22.tex
index 646af68..3abff12 100644
--- a/Doc/whatsnew/whatsnew22.tex
+++ b/Doc/whatsnew/whatsnew22.tex
@@ -3,7 +3,7 @@
% $Id$
\title{What's New in Python 2.2}
-\release{0.04}
+\release{0.05}
\author{A.M. Kuchling}
\authoraddress{\email{akuchlin@mems-exchange.org}}
\begin{document}
@@ -707,14 +707,24 @@ affect you very much.
encoding and converts them to the specified new encoding.
(Contributed by M.-A. Lemburg, and used for the MBCS support on
Windows described in the previous section.)
-
- \item Two new wrapper functions, \cfunction{PyOS_snprintf()} and
- \cfunction{PyOS_vsnprintf()} were added. which provide a cross-platform
- implementations for the relatively new snprintf()/vsnprintf() C lib
- APIs. In contrast to the standard sprintf() and vsprintf() C lib
- APIs, these versions apply bounds checking on the used buffer which
- enhances protection against buffer overruns.
- (Contributed by M.-A. Lemburg.)
+
+ \item Two new flags \constant{METH_NOARGS} and \constant{METH_O} are
+ available in method definition tables to simplify implementation of
+ methods with no arguments or a single untyped argument. Calling
+ such methods is more efficient than calling a corresponding method
+ that uses \constant{METH_VARARGS}.
+ Also, the old \constant{METH_OLDARGS} style of writing C methods is
+ now officially deprecated.
+
+\item
+ Two new wrapper functions, \cfunction{PyOS_snprintf()} and
+ \cfunction{PyOS_vsnprintf()} were added. which provide a
+ cross-platform implementations for the relatively new
+ \cfunction{snprintf()} and \cfunction{vsnprintf()} C lib APIs. In
+ contrast to the standard \cfunction{sprintf()} and
+ \cfunction{vsprintf()} functions, the Python versions check the
+ bounds of the buffer used to protect against buffer overruns.
+ (Contributed by M.-A. Lemburg.)
\end{itemize}