-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
PEP 594: uuencode codec and binascii functions apparently not properly deprecated or documented as such #92613
Comments
Probably just an oversight, although not a critical one. |
Still, one that should be corrected, since per PEP 387 (PEP-387), in order to be removed, any APIs must raise a deprecation warning (and be documented as such) for at least two releases, and their deprecation is also explicitly specified per PEP 594. Raising a Also, I presume this can still get landed in 3.11, since otherwise they would block |
Here's an example from https://github.com/python/cpython/pull/91846/files: PyMODINIT_FUNC
PyInit_spwd(void)
{
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"'spwd' is deprecated and slated for removal in "
"Python 3.13",
7)) {
return NULL;
} Some more: |
Yep, I'm just saying I don't have the time to do it myself.
As co-author of the PEP, I'm aware. 😉
That's a question for @pablogsal
No as it's too small of a deprecation. |
I'm partway through implementing this (most of the work is just silencing the warnings in the tests). BTW, I noticed one other minor use of
Yep, I assumed you'd have more important things to do, heh, so I assigned myself here.
I'd almost said "your PEP 387", but double-checked and noticed you were the
Is there something specific I need to do to apply for/justify an exception on this, or do we just wait for Pablo to respond here? I know release managers are very busy people...
👍 |
All done, PR opened as #92758 |
That's a question for @warsaw and the @python/email-team as to how they want to handle that. I ported the old
You request a review from him on the PR. |
Right, but per the approved text of the PEP, those In any case, I've pinged @warsaw and the email team on the PEP and requested them for review, get their feedback on that approach and any alternatives.
Done, thanks. |
Sure, but we can also roll that decision back if it turns out the support in the |
Is binascii.b2a_uu deprecated? If so, it would be nice to see this when reading the documentation. I recently wrote a script that will use it, without being aware of this push for deprecation. The PEP does not say any binascii functions will be deprecated; it only mentions deprecating the uu module, and encodings/uu_codec.py. |
It's not yet formally deprecated. #92758 plans to add docs and deprecation warnings, but it's been open for nearly two years... If it is merged before May (in Python 3.13) then it could he removed in October 2026 (in 3.15). |
@warsaw should we move forward w/ this deprecation or drop it? |
As referred to in #92611 , PEP 594 (PEP-594) states that the
uuencode
/decode
-related functions in thebinascii
module, as well as theuu
codec will be deprecated in Python 3.11 and removed in Python 3.13:However, as far as I can tell, those deprecations are neither implemented with warnings in uu_codec.py or binascii (although I'm not sure what a deprecation warning at the C level that should appear at the Python level is actually supposed to look like) nor are they documented in the respective uu codec or binascii documentation sections.
Is this intentional. If not, shouldn't we get these in for 3.11?
@brettcannon @tiran
The text was updated successfully, but these errors were encountered: