@@ -147,6 +147,15 @@ Some smaller changes made to the core Python language are:
147147
148148 (Contributed by Eric Smith; :issue: `5237 `.)
149149
150+ * The :func: `string.maketrans ` function is deprecated and is replaced by new
151+ static methods, :meth: `bytes.maketrans ` and :meth: `bytearray.maketrans `.
152+ This change solves the confusion around which types were supported by the
153+ :mod: `string ` module. Now, :class: `str `, :class: `bytes `, and
154+ :class: `bytearray ` each have their own **maketrans ** and **translate **
155+ methods with intermediate translation tables of the appropriate type.
156+
157+ (Contributed by Georg Brandl; :issue: `5675 `.)
158+
150159* ``round(x, n) `` now returns an integer if *x * is an integer.
151160 Previously it returned a float::
152161
@@ -248,8 +257,8 @@ New, Improved, and Deprecated Modules
248257 [2, 3, 5, 7]
249258
250259 >>> c = count(start=Fraction(1,2), step=Fraction(1,6))
251- >>> next(c), next(c), next(c), next(c)
252- ( Fraction(1, 2), Fraction(2, 3), Fraction(5, 6), Fraction(1, 1))
260+ >>> [ next(c), next(c), next(c), next(c)]
261+ [ Fraction(1, 2), Fraction(2, 3), Fraction(5, 6), Fraction(1, 1)]
253262
254263 (Contributed by Raymond Hettinger.)
255264
@@ -433,10 +442,10 @@ Major performance enhancements have been added:
433442
434443 (Contributed by Antoine Pitrou and Amaury Forgeot d'Arc, :issue: `4868 `.)
435444
436- * The :mod: `json ` module is getting a C extension to substantially improve
445+ * The :mod: `json ` module now has a C extension to substantially improve
437446 its performance. In addition, the API was modified so that json works
438447 only with :class: `str `, not with :class: `bytes `. That change makes the
439- module more closely conform to the `JSON specification <http://json.org/ >`_
448+ module closely match the `JSON specification <http://json.org/ >`_
440449 which is defined in terms of Unicode.
441450
442451 (Contributed by Bob Ippolito and converted to Py3.1 by Antoine Pitrou
@@ -482,6 +491,11 @@ Changes to Python's build process and to the C API include:
482491
483492 (Contributed by Mark Dickinson; :issue: `4910 `.)
484493
494+ * Added a new :cfunc: `PyOS_string_to_double ` function to replace the
495+ deprecated functions :cfunc: `PyOS_ascii_strtod ` and :cfunc: `PyOS_ascii_atof `.
496+
497+ (Contributed by Mark Dickinson; :issue: `5914 `.)
498+
485499* Added :ctype: `PyCapsule ` as a replacement for the :ctype: `PyCObject ` API.
486500 The principal difference is that the new type has a well defined interface
487501 for passing typing safety information and a less complicated signature
0 commit comments