mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
whatsnew: porting note for sysconfig 'SO' key deprecation.
This commit is contained in:
parent
c38f89146d
commit
0cf177205c
1 changed files with 5 additions and 0 deletions
|
@ -2249,6 +2249,11 @@ Changes in the Python API
|
||||||
future have no default, all calls to :func:`hmac.new` should be changed to
|
future have no default, all calls to :func:`hmac.new` should be changed to
|
||||||
explicitly specify a *digestmod* (:issue:`17276`).
|
explicitly specify a *digestmod* (:issue:`17276`).
|
||||||
|
|
||||||
|
* Calling :func:`sysconfig.get_config_var` with the ``SO`` key, or looking
|
||||||
|
``SO`` up in the results of a call to :func:`sysconfig.get_config_vars`
|
||||||
|
is deprecated. This key should be replaced by ``EXT_SUFFIX`` or
|
||||||
|
``SHLIB_SUFFIX``, depending on the context (:issue:`19555`).
|
||||||
|
|
||||||
* Any calls to ``open`` functions that specify ``U`` should be modified.
|
* Any calls to ``open`` functions that specify ``U`` should be modified.
|
||||||
``U`` is ineffective in Python3 and will eventually raise an error if used.
|
``U`` is ineffective in Python3 and will eventually raise an error if used.
|
||||||
Depending on the function, the equivalent of its old Python2 behavior can be
|
Depending on the function, the equivalent of its old Python2 behavior can be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue