8000 gh-71759: Deprecate using bytes-like objects in builtins. by serhiy-storchaka · Pull Request #779 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-71759: Deprecate using bytes-like objects in builtins. #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Prev Previous commit
Next Next commit
Merge branch 'master' into deprecate-buffer-as-string-in-builtins
  • Loading branch information
serhiy-storchaka committed Oct 12, 2017
commit b4dd83188f09305454e075d7217e7c03f4872d60
31 changes: 31 additions & 0 deletions Doc/whatsnew/3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,42 @@ Deprecated
now deprecated. It never correctly worked. (Contributed by Serhiy Storchaka
in :issue:`28692`.)

- The :mod:`macpath` is now deprecated and will be removed in Python 3.8.

- Deprecated using :term:`bytes-like objects <bytes-like object>` except
:class:`bytes` and :class:`bytearray` in builtins :class:`int`,
:class:`float`, :func:`compile`, :func:`eval` and :func:`exec`.
(Contributed by Serhiy Storchaka in :issue:`27572`.)

Changes in the C API
--------------------

- The type of results of :c:func:`PyThread_start_new_thread` and
:c:func:`PyThread_get_thread_ident`, and the *id* parameter of
:c:func:`PyThreadState_SetAsyncExc` changed from :c:type:`long` to
:c:type:`unsigned long`.
(Contributed by Serhiy Storchaka in :issue:`6532`.)

- :c:func:`PyUnicode_AsWideCharString` now raises a :exc:`ValueError` if the
second argument is *NULL* and the :c:type:`wchar_t*` string contains null
characters. (Contributed by Serhiy Storchaka in :issue:`30708`.)


Windows Only
------------
- The python launcher, (py.exe), can accept 32 & 64 bit specifiers **without**
having to specify a minor version as well. So ``py -3-32`` and ``py -3-64``
become valid as well as ``py -3.7-32``, also the -*m*-64 and -*m.n*-64 forms
are now accepted to force 64 bit python even if 32 bit would have otherwise
been used. If the specified version is not available py.exe will error exit.
(Contributed by Steve Barnes in :issue:`30291`.)

- The launcher can be run as "py -0" to produce a list of the installed pythons,
*with default marked with an asterix*. Running "py -0p" will include the paths.
If py is run with a version specifier that cannot be matched it will also print
the *short form* list of available specifiers.
(Contributed by Steve Barnes in :issue:`30362`.)

Removed
=======

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0