Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e54c718

Browse files
committed
A couple more whatsnew updates.
1 parent 0c7081a commit e54c718

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Doc/whatsnew/3.3.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ Some smaller changes made to the core Python language are:
796796

797797
(Contributed by Petri Lehtinen in :issue:`12170`)
798798

799+
* The ``rjust()``, ``ljust()``, and ``center()`` methods of :class:`bytes`
800+
and :class:`bytearray` now accept a :class:`bytearray` for the ``fill``
801+
argument. (Contributed by Petri Lehtinen in :issue:`12380`.)
802+
799803
* New methods have been added to :class:`list` and :class:`bytearray`:
800804
``copy()`` and ``clear()`` (:issue:`10516`). Consequently,
801805
:class:`~collections.abc.MutableSequence` now also defines a
@@ -2192,6 +2196,9 @@ Changes to Python's build process and to the C API include:
21922196
* :c:macro:`PyUnicode_READ`, :c:macro:`PyUnicode_READ_CHAR`, :c:macro:`PyUnicode_WRITE`
21932197
* :c:macro:`PyUnicode_MAX_CHAR_VALUE`
21942198

2199+
* :c:macro:`PyArg_ParseTuple` now accepts a :class:`bytearray` for the ``c``
2200+
format (:issue:`12380`).
2201+
21952202

21962203

21972204
Deprecated
@@ -2211,6 +2218,8 @@ OSF support, which was deprecated in 3.2, has been completely removed.
22112218
Deprecated Python modules, functions and methods
22122219
------------------------------------------------
22132220

2221+
* Passing a non-empty string to ``object.__format__()`` is deprecated, and
2222+
will produce a :exc:`TypeError` in Python 3.4 (:issue:`9856`).
22142223
* The ``unicode_internal`` codec has been deprecated because of the
22152224
:pep:`393`, use UTF-8, UTF-16 (``utf-16-le`` or ``utf-16-be``), or UTF-32
22162225
(``utf-32-le`` or ``utf-32-be``)
@@ -2438,6 +2447,11 @@ Porting Python code
24382447
factory functions by subclassing the private classes will need to change to
24392448
subclass the now-public classes.
24402449

2450+
* The undocumented debugging machinery in the threading module has been
2451+
removed, simplifying the code. This should have no effect on production
2452+
code, but is mentioned here in case any application debug frameworks were
2453+
interacting with it (:issue:`13550`).
2454+
24412455

24422456
Porting C code
24432457
--------------

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,7 @@ Core and Builtins
23632363
- Issue #11272: On Windows, input() strips '\r' (and not only '\n'), and
23642364
sys.stdin uses universal newline (replace '\r\n' by '\n').
23652365

2366-
- issue #11828: startswith and endswith don't accept None as slice index.
2366+
- Issue #11828: startswith and endswith now accept None as slice index.
23672367
Patch by Torsten Becker.
23682368

23692369
- Issue #10830: Fix PyUnicode_FromFormatV("%c") for non-BMP characters on

0 commit comments

Comments
 (0)