Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
5 captures
02 Feb 2021 - 30 Jan 2025
JanFEBMar
Previous capture02Next capture
202020212022
success
fail
COLLECTED BY
Organization:Archive Team
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

History is littered with hundreds of conflicts over the future of a community, group, location or business that were "resolved" when one of the parties stepped ahead and destroyed what was there. With the original point of contention destroyed, the debates would fall to the wayside. Archive Team believes that by duplicated condemned data, the conversation and debate can continue, as well as the richness and insight gained by keeping the materials. Our projects have ranged in size from a single volunteer downloading the data to a small-but-critical site, to over 100 volunteers stepping forward to acquire terabytes of user-created data to save for future generations.

The main site for Archive Team is atarchiveteam.org and contains up to the date information on various projects, manifestos, plans and walkthroughs.

This collection contains the output of many Archive Team projects, both ongoing and completed. Thanks to the generous providing of disk space by the Internet Archive, multi-terabyte datasets can be made available, as well as in use by theWayback Machine, providing a path back to lost websites and work.

Our collection has grown to the point of having sub-collections for the type of data we acquire. If you are seeking to browse the contents of these collections, the Wayback Machine is the best first stop. Otherwise, you are free to dig into the stacks to see what you may find.

The Archive Team Panic Downloads are full pulldowns of currently extant websites, meant to serve as emergency backups for needed sites that are in danger of closing, or which will be missed dearly if suddenly lost due to hard drive crashes or server failures.

This collection is a set of Github repository archives from two major sets: A panic grab upon the acquisition by Microsoft, and a larger, ongoing set of Pretty Much Everything.
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20210202064606/https://github.com/python/peps/pull/1462
Skip to content
Sign up
Sign in Sign up
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

PEP 623: Remove wstr from Unicode object#1462

Merged
methane merged 8 commits intopython:masterfrommethane:remove-wstrJun 25, 2020

Conversation

@methane
Copy link
Member

@methanemethane commentedJun 24, 2020

No description provided.

Copy link
Member

@vstinnervstinner left a comment

This PEP makes me sad. I dislike having to wait until 2025 (Python 3.14) to remove the last deprecated functions :-( I would prefer to target Python 3.12 for removal, and deprecate all at once in Python 3.10.

pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
@methane
Loading status checks…
pep-9999.rst OutdatedShow resolvedHide resolved
pep-9999.rst OutdatedShow resolvedHide resolved
Copy link
Member

@vstinnervstinner left a comment

I prefer to new plan: I'm more excited to see the removal in 2023 (Python 3.12) rath in 2025 (Python 3.14)!

@methanemethane changed the titleNew PEP: Remove wstr from Unicode objectPEP 629: Remove wstr from Unicode objectJun 25, 2020
pep-0629.rst OutdatedShow resolvedHide resolved
pep-0629.rst Outdated
@@ -0,0 +1,167 @@
PEP: 629
Title: Remove wstr from Unicode

This comment has been minimized.

@vstinner

vstinnerJun 25, 2020
Member

At the beginning, the PEP was focused on the wstr member. Now it also removes PyUnicode_READY(). But the PEP title can be changed to:

"Remove the legacy Unicode C API"

This comment has been minimized.

@methane

methaneJun 25, 2020
Author Member

I want to focus on APIs using wstr, because most APIs using Py_UNICODE can be removed without PEP.

pep-0629.rst OutdatedShow resolvedHide resolved
pep-0629.rst OutdatedShow resolvedHide resolved
pep-0629.rst Outdated
these deprecated APIs.[1]_

This PEP is planning removal of``wstr``, and``wstr_length`` with
deprecated APIs using these members by Python 3.12.

This comment has been minimized.

@vstinner

vstinnerJun 25, 2020
Member

When I readhttps://www.python.org/dev/peps/pep-0393/#deprecations-removals-and-incompatibilities and your PEP, it's non-obvious why functions usingPy_UNICODE* like PyUnicode_Encode() are not scheduled for removal by this PEP. Even for me who knows well Unicode internals :-)

First of all, doyou care of removing these functions in the "short term" (Python 3.12) or long term (later)? Or do you want to keep them for now? If you want to keep them, please just add a sentence somewhere to explain that.

For example, explain that the PEP is limited to removing PyUnicode_WCHAR_KIND and all related APIs, for reasons listed in the PEP. But functions withPy_UNICODE* don't use PyUnicode_WCHAR_KIND and so are out of the scope of this PEP.

This comment has been minimized.

@methane

methaneJun 25, 2020
Author Member

First of all, doyou care of removing these functions in the "short term" (Python 3.12) or long term (later)? Or do you want to keep them for now? If you want to keep them, please just add a sentence somewhere to explain that.

I want to remove most of them before Python 3.12. I don't want to make Python 3.12 big breaking change.

Most APIs are documented as deprecated since Python 3.3, and markedPy_DEPRECATED since Python 3.6. Most of them can be removed in 3.10.

For example, explain that the PEP is limited to removing PyUnicode_WCHAR_KIND and all related APIs, for reasons listed in the PEP. But functions withPy_UNICODE* don't use PyUnicode_WCHAR_KIND and so are out of the scope of this PEP.

PyUnicode_AsUnicode() and "u" format in PyArg_ParseTuple are not relating to PyUnicode_WCHAR_KIND, butwstr.

This comment has been minimized.

@vstinner

vstinnerJun 25, 2020
Member

Most APIs are documented as deprecated since Python 3.3, and marked Py_DEPRECATED since Python 3.6. Most of them can be removed in 3.10.

I'm not sure that people are paying attention to compiler warnings emitted by Py_DEPRECATED(). Do you think that it's worth it to start emiting a DeprecationWarning in Python 3.10, and remove these functions in Python 3.12, or maybe already in Python 3.11?

This comment has been minimized.

@methane

methaneJun 25, 2020
Author Member

I don't think so.

For example, PyLong_FromUnicode doesn't execute arbitrary code. It doesn't release GIL too.
If we emit warning from the function, now the function will run arbitrary code (warning filter).

It is breaking change too. But compile error must be safe than runtime warning.
We can revert the removal anyway.

@vstinner
Copy link
Member

@vstinnervstinner commentedJun 25, 2020

The implementation of the Python str types and codecs take more than 21k lines of C code. I would prefer to remove as much deprecated code as possible to reduce the maintenance burden.

The problem is that I don't know how many C extension modules still use it. Maybe we can start by deprecating all of them in 3.10, announce removal in 3.12, but postpone removal of some functions usingPy_UNICODE* if needed. Something like the PEP 620 process:
https://www.python.org/dev/peps/pep-0620/#process-to-reduce-the-number-of-broken-c-extensions

It sounds relevant to put it in the same PEP since it's also related to Unicode C API, but I can also understand if you prefer to keep the PEP as small as possible. If you don't want to put it in the same PEP, I'm not sure if I should write another PEP... or simply deprecate/remove with no PEP :-) A PEP helps to communicate our intent and make deprecation more visible.

$ wc -l Objects/stringlib/*.h Objects/unicodectype.c Objects/unicodeobject.c    25 Objects/stringlib/asciilib.h   825 Objects/stringlib/codecs.h    27 Objects/stringlib/count.h   116 Objects/stringlib/ctype.h    25 Objects/stringlib/eq.h   283 Objects/stringlib/fastsearch.h   119 Objects/stringlib/find.h   134 Objects/stringlib/find_max_char.h   163 Objects/stringlib/join.h    82 Objects/stringlib/localeutil.h   125 Objects/stringlib/partition.h    53 Objects/stringlib/replace.h   390 Objects/stringlib/split.h    27 Objects/stringlib/stringdefs.h   740 Objects/stringlib/transmogrify.h    25 Objects/stringlib/ucs1lib.h    25 Objects/stringlib/ucs2lib.h    26 Objects/stringlib/ucs4lib.h    10 Objects/stringlib/undef.h    31 Objects/stringlib/unicodedefs.h  1291 Objects/stringlib/unicode_format.h   297 Objects/unicodectype.c 16272 Objects/unicodeobject.c 21111 total
methane added2 commitsJun 25, 2020
@methane
Loading status checks…
@methane
Loading status checks…
pep-0629.rst OutdatedShow resolvedHide resolved
@vstinner
vstinner approved these changesJun 25, 2020
Copy link
Member

@vstinnervstinner left a comment

LGTM, but I suggest to change the PEP number to 623.

You may try to merge the PR ASAP to reserve the PEP number, we can continue to discuss it after it's merged ;-)

@methane
Loading status checks…
@methanemethane changed the titlePEP 629: Remove wstr from Unicode objectPEP 623: Remove wstr from Unicode objectJun 25, 2020
Copy link
Contributor

@hugovkhugovk left a comment

A typo and suggestion

pep-0629.rst OutdatedShow resolvedHide resolved
pep-0629.rst OutdatedShow resolvedHide resolved
@methane
Loading status checks…
@methanemethane merged commit9ea076f intopython:masterJun 25, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@methanemethane deleted the methane:remove-wstrbranchJun 25, 2020
these deprecated APIs.[1]_

This PEP is planning removal of``wstr``, and``wstr_length`` with
deprecated APIs using these members by Python 3.12.

Deprecated APIs doesn't use the members are out of scope because
Deprecated APIswhichdoesn't use the members are out of scope because

This comment has been minimized.

@hugovk

hugovkJun 25, 2020
Contributor

-Deprecated APIs which doesn't use the members are out of scope because+Deprecated APIs which don't use the members are out of scope because
AA-Turner added a commit to AA-Turner/peps that referenced this pull requestAug 15, 2020
mnm678 added a commit to mnm678/peps that referenced this pull requestOct 22, 2020
gaborbernat added a commit to gaborbernat/peps that referenced this pull requestDec 13, 2020
@methane@gaborbernat
Verified
This commit was signed with averified signature.
gaborbernat Bernát Gábor
GPG key ID:389A324926656E0DLearn about signing commits
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
@methane@vstinner@Rosuav@hugovk@the-knights-who-say-ni

[8]ページ先頭

©2009-2025 Movatter.jp