Original Translation
2817
The new algorithm depends on certain features in the underlying floating point implementation. If the required features are not found, the old algorithm will continue to be used. Also, the text pickle protocols assure cross-platform portability by using the old algorithm.
2818
(Contributed by Eric Smith and Mark Dickinson; :issue:`1580`)
2819
Added a :class:`collections.Counter` class to support convenient counting of unique items in a sequence or iterable::
2820
>>> Counter(['red', 'blue', 'red', 'green', 'blue', 'blue']) Counter({'blue': 3, 'red': 2, 'green': 1})
2821
(Contributed by Raymond Hettinger; :issue:`1696199`.)
2822
Added a new module, :mod:`tkinter.ttk` for access to the Tk themed widget set. The basic idea of ttk is to separate, to the extent possible, the code implementing a widget's behavior from the code implementing its appearance.
2823
(Contributed by Guilherme Polo; :issue:`2983`.)
2824
The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classes now support the context manager protocol::
2825
>>> # Automatically close file after writing >>> with gzip.GzipFile(filename, "wb") as f: ... f.write(b"xxx")
2826
(Contributed by Antoine Pitrou.)