[Python-checkins] r72668 - python/branches/py3k/Doc/whatsnew/3.1.rst

raymond.hettinger python-checkins at python.org
Fri May 15 18:16:12 CEST 2009


Author: raymond.hettinger
Date: Fri May 15 18:16:12 2009
New Revision: 72668

Log:
More updates.

Modified:
   python/branches/py3k/Doc/whatsnew/3.1.rst

Modified: python/branches/py3k/Doc/whatsnew/3.1.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.1.rst	(original)
+++ python/branches/py3k/Doc/whatsnew/3.1.rst	Fri May 15 18:16:12 2009
@@ -147,6 +147,15 @@
 
   (Contributed by Eric Smith; :issue:`5237`.)
 
+* The :func:`string.maketrans` function is deprecated and is replaced by new
+  static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`.
+  This change solves the confusion around which types were supported by the
+  :mod:`string` module. Now, :class:`str`, :class:`bytes`, and
+  :class:`bytearray` each have their own **maketrans** and **translate**
+  methods with intermediate translation tables of the appropriate type.
+
+  (Contributed by Georg Brandl; :issue:`5675`.)
+
 * ``round(x, n)`` now returns an integer if *x* is an integer.
   Previously it returned a float::
 
@@ -248,8 +257,8 @@
     [2, 3, 5, 7]
 
     >>> c = count(start=Fraction(1,2), step=Fraction(1,6))
-    >>> next(c), next(c), next(c), next(c)
-    (Fraction(1, 2), Fraction(2, 3), Fraction(5, 6), Fraction(1, 1))
+    >>> [next(c), next(c), next(c), next(c)]
+    [Fraction(1, 2), Fraction(2, 3), Fraction(5, 6), Fraction(1, 1)]
 
   (Contributed by Raymond Hettinger.)
 
@@ -433,10 +442,10 @@
 
   (Contributed by Antoine Pitrou and Amaury Forgeot d'Arc, :issue:`4868`.)
 
-* The :mod:`json` module is getting a C extension to substantially improve
+* The :mod:`json` module now has a C extension to substantially improve
   its performance.  In addition, the API was modified so that json works
   only with :class:`str`, not with :class:`bytes`.  That change makes the
-  module more closely conform to the `JSON specification <http://json.org/>`_
+  module closely match the `JSON specification <http://json.org/>`_
   which is defined in terms of Unicode.
 
   (Contributed by Bob Ippolito and converted to Py3.1 by Antoine Pitrou
@@ -482,6 +491,11 @@
 
   (Contributed by Mark Dickinson; :issue:`4910`.)
 
+* Added a new :cfunc:`PyOS_string_to_double` function to replace the
+  deprecated functions :cfunc:`PyOS_ascii_strtod` and :cfunc:`PyOS_ascii_atof`.
+
+  (Contributed by Mark Dickinson; :issue:`5914`.)
+
 * Added :ctype:`PyCapsule` as a replacement for the :ctype:`PyCObject` API.
   The principal difference is that the new type has a well defined interface
   for passing typing safety information and a less complicated signature


More information about the Python-checkins mailing list