Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs#20878

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
methane merged 18 commits intopython:masterfrommethane:pep393-deprecation
Jun 17, 2020
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
b7bb169
bpo-36346: Uncomment Py_DEPRECATED for deprecated unicode APIs
methaneJun 15, 2020
4e88718
Deprecate _PyUnicode_AsUnicode
methaneJun 15, 2020
8f58264
Merge remote-tracking branch 'origin/master' into pep393-deprecation
methaneJun 16, 2020
6b9d12c
Supress deprecation warnings
methaneJun 16, 2020
10e1b13
Use inline functions. Undeprecate some APIs.
methaneJun 16, 2020
a703182
Revive commented deprecation
methaneJun 16, 2020
468a43b
supress one more warning
methaneJun 16, 2020
52802fe
Remove Py_UNICODE_MATCH and deprecate PyUnicode_WSTR_LENGTH
methaneJun 16, 2020
6e86236
Undeprecate APIs that doesn't use wstr
methaneJun 16, 2020
b9fa49a
Update _testcapimodule
methaneJun 16, 2020
30bed2d
Add news
methaneJun 17, 2020
4490cc7
Add what's new entry
methaneJun 17, 2020
8c2daae
fixup
methaneJun 17, 2020
cae4804
Update Misc/NEWS.d/next/C API/2020-06-17-11-24-00.bpo-36346.fTMr3S.rst
methaneJun 17, 2020
26cb789
Update Objects/unicodeobject.c
methaneJun 17, 2020
4390489
Update Misc/NEWS.d/next/C API/2020-06-17-11-24-00.bpo-36346.fTMr3S.rst
methaneJun 17, 2020
35d68db
fixup
methaneJun 17, 2020
b3ee751
avoid _impl suffix
methaneJun 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Add what's new entry
  • Loading branch information
@methane
methane committedJun 17, 2020
commit4490cc7a3726730521c7719bf41e541e50254668
14 changes: 9 additions & 5 deletionsDoc/whatsnew/3.9.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1098,11 +1098,11 @@ Porting to Python 3.9
(Contributed by Victor Stinner in :issue:`40241`.)

* The ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, ``PyUnicode_WSTR_LENGTH``,
``PyUnicode_WSTR_LENGTH``, ``PyUnicode_FromUnicode``,
``PyUnicode_AsUnicode``,``_PyUnicode_AsUnicode``, and
``PyUnicode_AsUnicodeAndSize``deprecated in C.
Remove ``Py_UNICODE_MATCH``
because it was broken since Python 3.3.
:c:func:`PyUnicode_FromUnicode`, :c:func:`PyUnicode_AsUnicode`,
``_PyUnicode_AsUnicode``,and :c:func:`PyUnicode_AsUnicodeAndSize` are
marked asdeprecated in C. They have been deprecated by :pep:`393` since
Python 3.3.
(Contributed by Inada Naoki in :issue:`36346`.)

Removed
-------
Expand DownExpand Up@@ -1171,3 +1171,7 @@ Removed

* Remove ``_PyUnicode_ClearStaticStrings()`` function.
(Contributed by Victor Stinner in :issue:`39465`.)

* Remove ``Py_UNICODE_MATCH``. It has been deprecated by :pep:`393`, and
broken since Python 3.3.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please add:

The :c:func:`PyUnicode_Tailmatch` function can be used instead.

It's not exactly the same, but it's the closest function that we have.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Uh, I thought tailmatch is only prefix/suffix match. Thank you.

(Contributed by Inada Naoki in :issue:`36346`.)
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
Mark ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, ``PyUnicode_WSTR_LENGTH``,
``PyUnicode_WSTR_LENGTH``, ``PyUnicode_FromUnicode``,
``PyUnicode_AsUnicode``, ``_PyUnicode_AsUnicode``, and
``PyUnicode_AsUnicodeAndSize`` deprecated in C. Remove ``Py_UNICODE_MATCH``
``PyUnicode_FromUnicode``, ``PyUnicode_AsUnicode``, ``_PyUnicode_AsUnicode``,
and ``PyUnicode_AsUnicodeAndSize`` deprecated in C. Remove ``Py_UNICODE_MATCH``
because it was broken since Python 3.3.

[8]ページ先頭

©2009-2025 Movatter.jp