[Python-checkins] python/dist/src/Misc NEWS,1.872,1.873

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sun Oct 19 17:31:46 EDT 2003


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv23831/Misc

Modified Files:
	NEWS 
Log Message:
Modified the Py_RETURN_* macros by having the statements surrounded by {} in
order to prevent any unexpected surprises from someone using them in a
conditional without using curly braces (e.g., ``if (foo) Py_RETURN_TRUE``.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.872
retrieving revision 1.873
diff -C2 -d -r1.872 -r1.873
*** NEWS	19 Oct 2003 18:30:01 -0000	1.872
--- NEWS	19 Oct 2003 21:31:43 -0000	1.873
***************
*** 156,159 ****
--- 156,162 ----
  -----
  
+ - Added three new macros: Py_RETURN_NONE, Py_RETURN_TRUE, and Py_RETURN_FALSE.
+   Each return the singleton they mention after Py_INCREF()ing them.
+ 
  - Added a new function, PyTuple_Pack(n, ...) for constructing tuples from a
    variable length argument list of Python objects without having to invoke





More information about the Python-checkins mailing list