<commit_before>.. _whats-new-0.12.x:

What's New in v0.12.x
*********************

.. _whats-new-0.12.5:

What's new in version 0.12.5
============================

Deprecations
------------

The following internal modules are deprecated. They will be removed in a future
release:

- ``future.utils.encoding`` and ``future.utils.six``.

(Issue #80). See `here <http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries`_ for a
rationale for unbundling them.


Bug fixes
---------

- Use a private logger instead of the global logger in
  ``future.standard_library`` (issue #82).
- Stage 1 of ``futurize`` no longer renames ``next`` methods to ``__next__``
  (issue #81). It still converts ``obj.next()`` method calls to
  ``next(obj)`` correctly.
- Docs: Add :ref:`compatible-idioms` from Ed Schofield's PyConAU 2014 talk.
- Add ``newint.to_bytes()`` and ``newint.from_bytes()`` (issue #85)
- Add ``future.utils.raise_from`` as an equivalent to Py3's ``raise ... from
  ...`` syntax (issue #86).
- Prevent introduction of a second set of parentheses in ``print()`` calls in
  some further cases.
- Fix isinstance checks for subclasses of future types (issue #89).


.. _whats-new-0.12.4:

What's new in version 0.12.4
============================

- Fix upcasting behaviour of newint (issue #76).


.. _whats-new-0.12.3:

What's new in version 0.12.3
============================

- Add "official Python 3.4 support": Py3.4 is now listed among the PyPI Trove
  classifiers and the tests now run successfully on Py3.4 (issue #67).

- Add backports of ``collections.OrderedDict`` and
  ``collections.Counter`` for Python 2.6 (issue #52).

- Add ``--version`` option for ``futurize`` and ``pasteurize`` scripts
  (issue #57).

- Fix ``future.utils.ensure_new_type`` with ``long`` input (issue #65).

- Remove some false alarms on checks for ambiguous fixer names with
  ``futurize -f ...``.

- Testing fixes:
    - Don't hard-code Python interpreter command in tests (issue #62).<commit_msg>Add more new features and bug fixes to What's New page<commit_after>.. _whats-new-0.12.x:

What's New in v0.12.x
*********************

.. _whats-new-0.12.5:

What's new in version 0.12.5
============================

Deprecations
------------

The following internal modules are deprecated. They will be removed in a future
release:

- ``future.utils.encoding`` and ``future.utils.six``.

(Issue #80). See `here <http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries`_ for a
rationale for unbundling them.


New features
------------

- Docs: Add :ref:`compatible-idioms` from <NAME>'s PyConAU 2014 talk.
- Add ``newint.to_bytes()`` and ``newint.from_bytes()`` (issue #85)
- Add ``future.utils.raise_from`` as an equivalent to Py3's ``raise ... from
  ...`` syntax (issue #86).
- Add ``past.builtins.oct()`` function.
- Add backports for Python 2.6 of ``subprocess.check_output()``,
  ``itertools.combinations_with_replacement()``, and ``functools.cmp_to_key()``.

Bug fixes
---------

- Use a private logger instead of the global logger in
  ``future.standard_library`` (issue #82).
- Stage 1 of ``futurize`` no longer renames ``next`` methods to ``__next__``
  (issue #81). It still converts ``obj.next()`` method calls to
  ``next(obj)`` correctly.
- Prevent introduction of a second set of parentheses in ``print()`` calls in
  some further cases.
- Fix isinstance checks for subclasses of future types (issue #89).
- Be explicit about encoding file contents as UTF-8 in unit tests (issue #63).
  Useful for building RPMs and in other environments where ``LANG=C``.

.. _whats-new-0.12.4:

What's new in version 0.12.4
============================

- Fix upcasting behaviour of newint (issue #76).


.. _whats-new-0.12.3:

What's new in version 0.12.3
============================

- Add "official Python 3.4 support": Py3.4 is now listed among the PyPI Trove
  classifiers and the tests now run successfully on Py3.4 (issue #67).

- Add backports of ``collections.OrderedDict`` and
  ``collections.Counter`` for Python 2.6 (issue #52).

- Add ``--version`` option for ``futurize`` and ``pasteurize`` scripts
  (issue #57).

- Fix ``future.utils.ensure_new_type`` with ``long`` input (issue #65).

- Remove some false alarms on checks for ambiguous fixer names with
  ``futurize -f ...``.

- Testing fixes:
    - Don't hard-code Python interpreter command in tests (issue #62).
{'fraction_non_alphanumeric': 0.19155251141552512, 'fraction_numerical': 0.03219178082191781, 'mean_word_length': 3.7362162162162162, 'pattern_counts': {'":': 2, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '608890', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1383, 'n_words': 496}